diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-12-28 11:41:25 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-12-28 11:41:25 -0500 |
commit | 2e15f48d97271ce4ee6707f172494a1ebd0bc8e2 (patch) | |
tree | 33e235070ad416f7f9e9bde079e9a75bbdebe735 /src/tutorial/complex.c | |
parent | 6819380dd2655f1790d760b13a81f3d27dbe685a (diff) |
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
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions