Re: Reference Leak with type

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Rohit Bhogate <rohit(dot)bhogate(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Reference Leak with type
Date: 2021-04-06 12:19:52
Message-ID: YGxR6LtkY8/KR+T9@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2021-04-06 12:29:20 Re: postgres_fdw: IMPORT FOREIGN SCHEMA ... LIMIT TO (partition)
Previous Message Kazutaka Onishi 2021-04-06 12:06:33 Re: TRUNCATE on foreign table