aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-12-28 11:41:25 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-12-28 11:41:25 -0500
commit0ea25ed108d8344ac17012e62790e7e9ef7f1a7a (patch)
tree8bccb8dbf9954923900cddd118b8428da4c2e8f7 /src/backend/executor/nodeFunctionscan.c
parent30803bd1cd6c4c9a0dc3362b02b6aa549b876d77 (diff)
downloadpostgresql-0ea25ed108d8344ac17012e62790e7e9ef7f1a7a.tar.gz
postgresql-0ea25ed108d8344ac17012e62790e7e9ef7f1a7a.zip
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/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions