postgresql/src/backend
Tom Lane de0bea8d4d Lock relation used to generate fresh data for RMV.
Back-patch the 9.4-era commit 2636ecf78 into 9.3, as that fixes a case
where we open a relation while not holding any lock on it.  It's
probably mostly safe anyway, since no other session could touch the
newly-created table; but I think CheckTableNotInUse could be fooled
if one tried.

Per testing with a patch that complains if we open a relation without
holding any lock on it.  I don't plan to back-patch that patch, but we
should close the holes it identifies in all supported branches.

Discussion: https://postgr.es/m/2038.1538335244@sss.pgh.pa.us
2018-10-01 11:42:12 -04:00
..
access Avoid using potentially-under-aligned page buffers. 2018-09-01 15:27:14 -04:00
bootstrap Initialize random() in bootstrap/stand-alone postgres and in initdb. 2018-09-23 22:57:43 -07:00
catalog Add table relcache invalidation to index builds. 2018-08-03 14:44:26 -07:00
commands Lock relation used to generate fresh data for RMV. 2018-10-01 11:42:12 -04:00
executor Fix failure in WHERE CURRENT OF after rewinding the referenced cursor. 2018-09-23 16:05:46 -04:00
foreign Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
lib Misc comment typo fixes. 2014-12-16 16:39:33 +02:00
libpq Fix set of NLS translation issues 2018-08-21 15:18:56 +09:00
main Install Windows crash dump handler before all else. 2017-11-12 14:31:05 -08:00
nodes Fix failure with initplans used conditionally during EvalPlanQual rechecks. 2018-09-15 13:42:34 -04:00
optimizer Fix misprocessing of equivalence classes involving record_eq(). 2018-05-16 13:46:09 -04:00
parser Reduce an unnecessary O(N^3) loop in lexer. 2018-08-23 21:29:15 +01:00
po Translation updates 2018-08-06 19:30:02 +02:00
port Support building with Visual Studio 2015 2018-09-11 15:46:35 -04:00
postmaster Make syslogger more robust against failures in opening CSV log files. 2018-08-26 14:21:55 -04:00
regex Fix regexport.c to behave sanely with lookaround constraints. 2017-04-13 17:18:35 -04:00
replication Avoid using potentially-under-aligned page buffers. 2018-09-01 15:27:14 -04:00
rewrite Fix multiple assignments to a column of a domain type. 2017-07-11 16:48:59 -04:00
snowball Fix ancient encoding error in hungarian.stop. 2014-06-10 22:48:39 -04:00
storage Fix longstanding recursion hazard in sinval message processing. 2018-09-07 18:04:38 -04:00
tcop Initialize random() in bootstrap/stand-alone postgres and in initdb. 2018-09-23 22:57:43 -07:00
tsearch Fix bogus affix-merging code. 2018-04-12 18:39:52 -04:00
utils Fix over-allocation of space for array_out()'s result string. 2018-09-24 11:30:51 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
Makefile Fix make rules that generate multiple output files. 2018-03-23 13:45:38 -04:00
nls.mk xlogreader.c: Fix report_invalid_record translatability flag 2015-01-09 12:34:24 -03:00