Memory leak with CALL to Procedure with COMMIT.

From: Prabhat Sahu <prabhat(dot)sahu(at)enterprisedb(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Memory leak with CALL to Procedure with COMMIT.
Date: 2018-07-23 06:49:12
Message-ID: CANEvxPqXGHrvV4VivWHfoi=M_1b_UZj4VZ-UMbWG-JNogkJA9A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-07-23 06:59:16 Re: Fix calculations on WAL recycling.
Previous Message Andrey Lepikhov 2018-07-23 06:47:07 Re: [WIP] [B-Tree] Retail IndexTuple deletion