On Mon, Jul 23, 2018 at 12:19:12PM +0530, Prabhat Sahu wrote:
> While testing with PG procedure, I found a memory leak on HEAD, with below
> steps:
>
> postgres=# CREATE OR REPLACE PROCEDURE proc1(v1 INOUT INT)
> AS $$
> BEGIN
> commit;
> END; $$ LANGUAGE plpgsql;
> CREATE PROCEDURE
>
> postgres=# call proc1(10);
> WARNING: Snapshot reference leak: Snapshot 0x23678e8 still referenced
> v1
> ----
> 10
> (1 row)
I can reproduce this issue on HEAD and v11, so an open item is added.
Peter, could you look at it?
--
Michael