postgresql/src
Tom Lane dbca84f04e In rebuild_relation(), don't access an already-closed relcache entry.
This reliably fails with -DRELCACHE_FORCE_RELEASE, as reported by
Andrew Dunstan, and could sometimes fail in normal operation, resulting
in a wrong persistence value being used for the transient table.
It's not immediately clear to me what effects that might have beyond
the risk of a crash while accessing OldHeap->rd_rel->relpersistence,
but it's probably not good.

Bug introduced by commit f41872d0c, and made substantially worse by
commit 85b506bbf, which added a second such access significantly
later than the heap_close.  I doubt the first reference could fail
in a production scenario, but the second one definitely could.

Discussion: https://postgr.es/m/7b52f900-0579-cda9-ae2e-de5da17090e6@2ndQuadrant.com
2017-03-04 16:09:33 -05:00
..
backend In rebuild_relation(), don't access an already-closed relcache entry. 2017-03-04 16:09:33 -05:00
bin pg_dump: Fix ordering 2017-03-04 14:47:27 -05:00
common Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
fe_utils Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
include Disallow CREATE/DROP SUBSCRIPTION in transaction block 2017-03-03 23:29:13 -05:00
interfaces Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
makefiles Try to fix non-MSVC Windows builds in the wake of logical replication. 2017-01-20 12:51:31 -05:00
pl Remove PL/Tcl's "module" facility. 2017-02-27 11:20:22 -05:00
port Put back #include <windows.h> in dirmod.c. 2017-02-25 18:34:09 -05:00
template Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
test Disallow CREATE/DROP SUBSCRIPTION in transaction block 2017-03-03 23:29:13 -05:00
timezone Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
tools Reduce size of common allocation header. 2017-02-28 19:42:44 -08:00
tutorial Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Remove redundant coverage target 2017-02-17 08:56:57 -05:00
Makefile.global.in Dept of second thoughts: rename new perl script. 2017-02-19 16:41:51 -05:00
Makefile.shlib Fix typos in comments. 2017-02-06 11:33:58 +02:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00