Another WaitEventSet resource leakage in back branches
Etsuro Fujita <etsuro.fujita@gmail.com>
From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-03-22T12:15:45Z
Lists: pgsql-hackers
Attachments
- fix-another-WaitEventSet-resource-leakage.patch (application/octet-stream) patch
Hi, 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. Best regards, Etsuro Fujita [1] https://www.postgresql.org/message-id/CAPmGK15DF6EE7O6hTLbe5-fHvPDwEx9vm-BOCN3dsKOjZCo7bw%40mail.gmail.com
Commits
-
Fix WaitEventSet resource leak in WaitLatchOrSocket().
- 0341d4b10e78 12.19 landed
- 01b01a77fe78 13.15 landed
- b714bc40cf06 14.12 landed
- b82dca2a5a92 15.7 landed
- e79ceafe93a8 16.3 landed
-
Fix resource leak when a FDW's ForeignAsyncRequest function fails
- 555276f85940 14.11 cited