model-writtenrun 8065 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane investigated a buildfarm assertion after postmaster death and reproduced a separate macOS failure where a parallel-query leader hung during shutdown because another latch wait failed to report the already-dead postmaster #1.
- Thomas Munro proposed remembering the edge-triggered process-exit notification to provide level-triggered behavior, while Tom Lane questioned whether that state needed to be process-wide rather than per WaitEventSet #2 #3.
- Heikki Linnakangas traced the original buildfarm termination to a daily cron job killing tests that now took longer than 24 hours, and planned to run the job every other day #4.
- Thomas Munro retained per-WaitEventSet state because the kernel notifies each interested kqueue object, and posted a patch that remembered postmaster death; Tom Lane tested it and confirmed behavior consistent with EPOLL and POLL, leaving Windows untested #5 #6.
- Thomas Munro committed the patch with only comment and commit-message wording changes as b94109ce37 and announced the push; Tom Lane then shared a test helper for checking repeated postmaster-death notifications on other platforms #7 #8.
- Andres Freund asked about kqueue objects created after postmaster death, prompting Tom Lane to inspect the existing registration-error handling and recommend treating EACCES like ESRCH when a recycled PID belongs to another user; Thomas Munro agreed to make that change #9 #10 #11.
- Thomas Munro implemented the EACCES handling directly from the discussion as 70516a178a, explaining that he could not reproduce that error on FreeBSD but had found a potentially relevant error path in Apple's sources #12.
- Further investigation suggested Apple's EACCES path required NOTE_EXITSTATUS, which PostgreSQL did not request, but Thomas Munro and Tom Lane agreed to retain the defensive handling; both fixes remained committed, with the actual reachability of EACCES uncertain #13 #14.