Memory leak with CALL to Procedure with COMMIT. - Mailing list pgsql-hackers

From Prabhat Sahu
Subject Memory leak with CALL to Procedure with COMMIT.
Date
Msg-id CANEvxPqXGHrvV4VivWHfoi=M_1b_UZj4VZ-UMbWG-JNogkJA9A@mail.gmail.com
Whole thread Raw
Responses Re: Memory leak with CALL to Procedure with COMMIT.  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hi Hackers,

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)

--

With Regards,

Prabhat Kumar Sahu
Skype ID: prabhat.sahu1984
EnterpriseDB Corporation

The Postgres Database Company

pgsql-hackers by date:

Previous
From: Andrey Lepikhov
Date:
Subject: Re: [WIP] [B-Tree] Retail IndexTuple deletion
Next
From: Michael Paquier
Date:
Subject: Re: Fix calculations on WAL recycling.