refcount leak warnings - Mailing list pgsql-hackers

From Thomas Hallgren
Subject refcount leak warnings
Date
Msg-id 44A138BA.6050305@tada.se
Whole thread Raw
Responses Re: refcount leak warnings  (Martijn van Oosterhout <kleptog@svana.org>)
Re: refcount leak warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I have a PL/Java user that performs some lengthy operations. Eventually, 
he get warnings like:

WARNING: buffer refcount leak: [779] (rel=1663/16440/52989, blockNum=3, 
flags=0x27, refcount=1 2)

I traced this to the function PrintBufferLeakWarning. AFAICS, it's only 
called from the function ResourceOwnerReleaseInternal under the 
following comment:

* During a commit, there shouldn't be any remaining pins --- that
* would indicate failure to clean up the executor correctly --- so
* issue warnings.    In the abort case, just clean up quietly.

I have no idea where to go from here. What should I look for when trying 
to find the cause of such warnings?

Regards,
Thomas Hallgren



pgsql-hackers by date:

Previous
From: "Mark Woodward"
Date:
Subject: Re: vacuum, performance, and MVCC
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] Non-transactional pg_class, try 2