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=#