Re: pgsql: Fix memory leak in plpgsql's CALL processing.

2020-12-28 Thread Tom Lane
I wrote: > so it looks like a memory clobber --- probably some data structure is > being built in the wrong memory context. Will look closer shortly. Brain-dead typo ... where's my brown paper bag? regards, tom lane

Re: pgsql: Fix memory leak in plpgsql's CALL processing.

2020-12-28 Thread Tom Lane
Peter Eisentraut writes: > This change has broken the following test case (reduced from actual > production code): Thanks for the report. What I see here is ERROR: unsupported target type: 2139062143 so it looks like a memory clobber --- probably some data structure is being built in the wro

Re: pgsql: Fix memory leak in plpgsql's CALL processing.

2020-12-28 Thread Peter Eisentraut
This change has broken the following test case (reduced from actual production code): CREATE OR REPLACE PROCEDURE prc_inout_test_inner(INOUT x integer) LANGUAGE plpgsql AS $procedure$ BEGIN COMMIT; x := 2; END; $procedure$; CREATE OR REPLACE PROCEDURE prc_inout_test_main() LANGUAGE plpgsql