Re: Enhancing Memory Context Statistics Reporting - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Enhancing Memory Context Statistics Reporting
Date
Msg-id ulzmfs7wuhon3ntyci3njk5w2soh45jtwhd4cokacn4fbfnazm@whrfe3yw3247
Whole thread Raw
In response to Re: Enhancing Memory Context Statistics Reporting  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Enhancing Memory Context Statistics Reporting
List pgsql-hackers
Hi,

On 2026-01-13 14:31:00 -0500, Robert Haas wrote:
> Also, it's not really safe to acquire an LWLock if there's no
> transaction active. If we error afterward, what will release the
> LWLock?

All the error handling paths (hopefully) have an LWLockReleaseAll()... Which
is pretty crucial given that we do stuff outside of transactions in other
places.

That doesn't mean the other concerns about resource management are unfounded,
however.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: Cleaning up PREPARE query strings?
Next
From: Peter Eisentraut
Date:
Subject: Re: Proposal: SELECT * EXCLUDE (...) command