Re: Another WaitEventSet resource leakage in back branches - Mailing list pgsql-hackers

From Etsuro Fujita
Subject Re: Another WaitEventSet resource leakage in back branches
Date
Msg-id CAPmGK15KRHgwf=5Gfsv_0WYjK87ajH7=SqVmCfsoL7VhT5k+JQ@mail.gmail.com
Whole thread Raw
In response to Another WaitEventSet resource leakage in back branches  (Etsuro Fujita <etsuro.fujita@gmail.com>)
Responses Re: Another WaitEventSet resource leakage in back branches
List pgsql-hackers
On Fri, Mar 22, 2024 at 9:15 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
> While working on [1], I noticed $SUBJECT: WaitLatchOrSocket in back
> branches is ignoring the possibility of failing partway through, too.
> I added a PG_FAINALLY block to that function, like commit 555276f85.
> Patch attached.

I noticed that PG_FAINALLY was added in v13.  I created a separate
patch for v12 using PG_CATCH instead.  Patch attached.  I am attaching
the previous patch for later versions as well.

I am planning to back-patch these next week.

Best regards,
Etsuro Fujita

Attachment

pgsql-hackers by date:

Previous
From: "Andrey M. Borodin"
Date:
Subject: Re: CSN snapshots in hot standby
Next
From: Bertrand Drouvot
Date:
Subject: Re: Synchronizing slots from primary to standby