model-writtenrun 3435 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Etsuro Fujita reported that WaitLatchOrSocket() could leak WaitEventSet resources after an error and proposed wrapping its operations in PG_TRY/PG_FINALLY to guarantee cleanup #1.
- After noticing that PG_FINALLY was introduced in PostgreSQL 13, Fujita added a PostgreSQL 12 variant using PG_CATCH and rethrowing the error, while retaining the original patch for later supported branches #2.
- Fujita committed the unchanged later-branch patch as e79ceafe93 and announced completion in #3; the fix covered supported stable branches, while HEAD did not need it.
- After the commit, Andres Freund questioned the cost of exception handling on this common path and requested a concrete failure scenario, so his feedback does not qualify as a pre-commit review #4.
- Fujita explained that system calls such as epoll_ctl could fail with ENOMEM or ENOSPC and asked whether the fix caused more problems than it solved; the thread ends with the fix committed and the performance concern unresolved #5.