Re: WaitEventSet resource leakage - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: WaitEventSet resource leakage
Date
Msg-id 0b1770f1-b211-46aa-94cd-ee15c9cb934b@iki.fi
Whole thread Raw
In response to Re: WaitEventSet resource leakage  (Alexander Lakhin <exclusion@gmail.com>)
List pgsql-hackers
On 22/11/2023 15:00, Alexander Lakhin wrote:
> I can also confirm that the patches proposed (for master and back branches)
> eliminate WES leakage as expected.
> 
> Thanks for the fix!
> 
> Maybe you would find appropriate to add the comment
> /* Convenience wrappers over ResourceOwnerRemember/Forget */
> above ResourceOwnerRememberWaitEventSet
> just as it's added above ResourceOwnerRememberRelationRef,
> ResourceOwnerRememberDSM, ResourceOwnerRememberFile, ...

Added that and fixed the Windows warning that Thomas pointed out. Pushed 
the ResourceOwner version to master, and PG_TRY-CATCH version to 14-16.

Thank you!

> (As a side note, this fix doesn't resolve the issue #17828 completely,
> because that large number of handles might be also consumed
> legally.)

:-(

-- 
Heikki Linnakangas
Neon (https://neon.tech)




pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: [PATCH] psql: Add tab-complete for optional view parameters
Next
From: Bono Stebler
Date:
Subject: Use index to estimate expression selectivity