Re: Reference Leak with type - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Reference Leak with type
Date
Msg-id YGxR6LtkY8/KR+T9@paquier.xyz
Whole thread Raw
In response to Reference Leak with type  (Rohit Bhogate <rohit.bhogate@enterprisedb.com>)
Responses Re: Reference Leak with type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Apr 06, 2021 at 11:09:13AM +0530, Rohit Bhogate wrote:
>  I found the below reference leak on master.

Thanks for the report.  This is indeed a new problem as of HEAD,
coming from c9d52984 as far as I can see, and 13 does not support this
grammar.  From what I can see, there seems to be an issue with the
reference count of the TupleDesc here, your test case increments two
times a TupleDesc for this custom type in a portal, and tries to
decrement it three times, causing what looks like a leak.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Kazutaka Onishi
Date:
Subject: Re: TRUNCATE on foreign table
Next
From: Fujii Masao
Date:
Subject: Re: postgres_fdw: IMPORT FOREIGN SCHEMA ... LIMIT TO (partition)