Reference Leak with type - Mailing list pgsql-hackers

From Rohit Bhogate
Subject Reference Leak with type
Date
Msg-id CAAV6ZkQRCVBh8qAY+SZiHnz+U+FqAGBBDaDTjF2yiKa2nJSLKg@mail.gmail.com
Whole thread Raw
Responses Re: Reference Leak with type  (Michael Paquier <michael@paquier.xyz>)
List 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 

pgsql-hackers by date:

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