Reference Leak with type

From: Rohit Bhogate <rohit(dot)bhogate(at)enterprisedb(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Reference Leak with type
Date: 2021-04-06 05:39:13
Message-ID: CAAV6ZkQRCVBh8qAY+SZiHnz+U+FqAGBBDaDTjF2yiKa2nJSLKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi All ,

I found the below reference leak on master.

Steps to reproduce the issue :
--1) create type
create type float_array_typ as ( i float8);

--2) create anonymous block
postgres=# do $$
declare
a float_array_typ[];
begin
a[1].i := 11;
commit;
end
$$;
WARNING: TupleDesc reference leak: TupleDesc 0x7ff7673b15f0 (16386,-1)
still referenced
ERROR: tupdesc reference 0x7ff7673b15f0 is not owned by resource owner
TopTransaction
postgres=#

*Regards,*
Rohit

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2021-04-06 05:48:21 Re: Since '2001-09-09 01:46:40'::timestamp microseconds are lost when extracting epoch
Previous Message Tom Lane 2021-04-06 05:34:02 Re: subtransaction performance regression [kind of] due to snapshot caching