postgresql/src
Tom Lane eaf0292c3b 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:26 -04:00
..
backend Fix unsafe memory management in CloneRowTriggersToPartition(). 2019-06-03 16:59:26 -04:00
bin Fix typos in various places 2019-06-03 13:44:03 +09:00
common Fix typos in various places 2019-06-03 13:44:03 +09:00
fe_utils Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
include Update SQL conformance information about JSON path 2019-06-03 21:36:04 +02:00
interfaces Un-break ecpg tests for Windows. 2019-06-02 11:07:54 -04:00
makefiles Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds. 2019-04-09 08:25:39 -07:00
pl Clean up PL/Perl's handling of the _() macro. 2019-06-02 12:23:39 -04:00
port Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test worker_spi needs a .gitignore file now. 2019-06-02 11:13:23 -04:00
timezone Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
tools Make cpluspluscheck more portable. 2019-06-02 13:45:01 -04:00
tutorial Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Consistently test for in-use shared memory. 2019-04-12 22:36:38 -07:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00