postgresql/src
Tom Lane ea80d8d943 Fix thinko in plpgsql memory leak fix.
Commit a6b1f5365 intended to place the transient "target" list of
a CALL statement in the function's statement-lifespan context,
but I fat-fingered that and used get_eval_mcontext() instead of
get_stmt_mcontext().  The eval_mcontext belongs to the "simple
expression" infrastructure, which is destroyed at transaction end.
The net effect is that a CALL in a procedure to another procedure
that has OUT or INOUT parameters would fail if the called procedure
did a COMMIT.

Per report from Peter Eisentraut.  Back-patch to v11, like the
prior patch.

Discussion: https://postgr.es/m/f075f7be-c654-9aa8-3ffc-e9214622f02a@enterprisedb.com
2020-12-28 11:41:25 -05:00
..
backend Fix inconsistent code with shared invalidations of snapshots 2020-12-28 22:16:49 +09:00
bin Revert "Add key management system" (978f869b99) & later commits 2020-12-27 21:37:42 -05:00
common Revert "Add key management system" (978f869b99) & later commits 2020-12-27 21:37:42 -05:00
fe_utils Remove incorrect %s in string 2020-11-09 10:38:22 +01:00
include Revert "Add key management system" (978f869b99) & later commits 2020-12-27 21:37:42 -05:00
interfaces revert removal of hex_decode() from ecpg from commit c3826f831e 2020-12-24 18:21:37 -05:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Fix thinko in plpgsql memory leak fix. 2020-12-28 11:41:25 -05:00
port Remove ability to independently select random number generator 2020-11-20 13:57:33 +01:00
template On macOS, use -isysroot in link steps as well as compile steps. 2020-11-20 00:07:09 -05:00
test Second attempt to stabilize 05c02589. 2020-12-27 12:09:00 -08:00
timezone Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
tools Revert "Add key management system" (978f869b99) & later commits 2020-12-27 21:37:42 -05:00
tutorial Remove support for postfix (right-unary) operators. 2020-09-17 19:38:05 -04:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00