model-writtenrun 2425 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kyotaro Horiguchi reported that a standby could wait for a connection timeout before promotion because the shared connection helper missed walreceiver shutdown requests, and proposed standard ProcDiePending/CHECK_FOR_INTERRUPTS() handling in #1; he subsequently supplied a reproducer in #3.
- Heikki Linnakangas reproduced the failure and proposed reverting the nonessential refactoring for PostgreSQL 16 in #4, Michael Paquier urged reverting it on HEAD too in #5, and Fujii Masao supported an urgent revert in #7; Andres Freund and Kyotaro argued that generalized interrupt handling remained the proper longer-term direction in #8 and #9.
- Fujii found that testing WalRcv could misidentify other processes as walreceivers and suggested using die() in #10; Kyotaro corrected the process-type test in #11 while initially retaining the custom signal handler.
- Heikki committed the discussion-derived revert as 21ef4d4d89, restoring interruptible connection polling rather than applying an attached patch, and confirmed the revert on master and PostgreSQL 16 in #12.
- Heikki then assembled a replacement series in #13 that restored the refactoring, incorporated Kyotaro's fix, converted additional query/result operations to shared wrappers, and used AmWalReceiverProcess(); he also explained why die() was suitable for walreceiver.
- Discussion raised broader questions about which processes may terminate at arbitrary interrupt checks in #14 and #15; Kyotaro retained that distinction for checkpointer and posted the complete updated series using die() in #16.
- Robert Haas requested meaningful commit messages explaining the revert-and-reapply sequence and clarification of the target release in #17.
- After more than a year, Yura Sokolov revived the work with a rebase and folded the two cleanup patches into the main interrupt-handling patch in #18.
- Heikki reported reviewing and committing the squashed replacement series with an explanatory commit message in #19, specifying PostgreSQL 18 only; the final message leaves no patch outstanding, although that later landing is not among the supplied candidate commits.