postgresql/src/backend
Tom Lane 601084eb1a Fix unsafe memory management in CloneRowTriggersToPartition().
It's not really supported to call systable_getnext() in a different
memory context than systable_beginscan() was called in, and it's
*definitely* not safe to do so and then reset that context between
calls.  I'm not very clear on how this code survived
CLOBBER_CACHE_ALWAYS testing ... but Alexander Lakhin found a case
that would crash it pretty reliably.

Per bug #15828.  Fix, and backpatch to v11 where this code came in.

Discussion: https://postgr.es/m/15828-f6ddd7df4852f473@postgresql.org
2019-06-03 16:59:16 -04:00
..
access Fix comment on when HOT update is possible. 2019-05-14 13:06:33 +03:00
bootstrap Message wording and pluralization improvements 2018-05-17 23:05:27 -04:00
catalog Fix style violations in syscache lookups. 2019-05-05 13:10:07 -04:00
commands Fix unsafe memory management in CloneRowTriggersToPartition(). 2019-06-03 16:59:16 -04:00
executor Fix array size allocation for HashAggregate hash keys. 2019-05-23 15:38:33 +01:00
foreign Remove bogus "extern" annotations on function definitions. 2018-02-19 12:07:44 -05:00
jit llvm: Fix file-ending in IDENTIFICATION comments. 2019-01-22 11:50:03 -08:00
lib Rename rbtree.c functions to use "rbt" prefix not "rb" prefix. 2018-11-06 13:25:24 -05:00
libpq Fix detection of passwords hashed with MD5 or SCRAM-SHA-256 2019-04-23 15:43:32 +09:00
main Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes Restructure creation of run-time pruning steps. 2019-05-17 19:44:19 -04:00
optimizer Repair issues with faulty generation of merge-append plans. 2019-05-09 16:52:49 -04:00
parser Fix backwards test in operator_precedence_warning logic. 2019-04-10 19:02:32 -04:00
partitioning Restructure creation of run-time pruning steps. 2019-05-17 19:44:19 -04:00
po Translation updates 2019-05-06 15:00:30 +02:00
port Cope with EINVAL and EIDRM shmat() failures in PGSharedMemoryAttach. 2019-05-10 14:56:41 -04:00
postmaster Rearrange pgstat_bestart() to avoid failures within its critical section. 2019-05-11 21:27:13 -04:00
regex Fix misoptimization of "{1,1}" quantifiers in regular expressions. 2019-05-12 18:53:40 -04:00
replication Fix logical replication's ideas about which type OIDs are built-in. 2019-05-13 17:23:00 -04:00
rewrite Perform RLS subquery checks as the right user when going via a view. 2019-04-02 08:17:04 +01:00
snowball Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
statistics Make error logging in extended statistics more consistent 2019-05-30 17:06:21 +02:00
storage Consistently test for in-use shared memory. 2019-04-12 22:36:42 -07:00
tcop Fix potential catalog corruption with temporary identity columns 2019-04-29 08:49:14 +02:00
tsearch Make ts_locale.c's character-type functions cope with UTF-16. 2018-11-03 13:56:10 -04:00
utils Fail pgwin32_message_to_UTF16() for SQL_ASCII messages. 2019-05-12 10:33:08 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
nls.mk Translation updates 2018-09-17 08:40:36 +02:00