model-writtenrun 989 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jakub Wartak proposed recording the PID and UID of SIGTERM senders to diagnose unexplained backend terminations without external tracing, initially using Linux SA_SIGINFO and no configuration switch in #1.
- Jim Jones tested the initial patch on Linux in #2, while Chao Li clarified message-capitalization requirements in #4; Jakub added build-system detection, verified FreeBSD, and revised the types for Windows in #5 and #7.
- Chao identified duplicate errdetail() calls, questionable integer formatting, stale sender state, and inappropriate reporting for query cancellation in #8 and #10; Jakub's revisions through #11 addressed formatting and cancellation reporting while temporarily using HINT consistently.
- After a gap of more than a month, Andrew Dunstan revived the feature for PostgreSQL 19 in #12, switching back to DETAIL and capturing and clearing sender globals before error reporting.
- Jie Wang questioned signed PID/UID formatting in #14, Jakub supported consistency with existing int usage in #15, and Andrew landed 55890a9194 from #12 with light type, macro-placement, and comment changes, announcing it in #16.
- Immediately after that landing, Andres Freund objected to untranslatable message construction and SIGTERM-specific behavior inside the generic wrapper in #17, asking that sender information be forwarded to the actual handler.
- Andrew proposed generic sender globals in #18, but Andres explained the nested-signal hazard in #19; Andrew then tried a saved/restored siginfo pointer in #20, which Andres still rejected in #21.
- Chao offered per-signal storage behind pqsignal_get_sender() in #22, and Jim questioned the types and interface implications in #23, but these helper-based approaches were superseded.
- Andres supplied the replacement design in #24: every handler would receive a platform-independent pg_signal_info argument, unsupported platforms would supply default values, and PG_SIG_IGN/PG_SIG_DFL would accommodate the new function type.
- Chao accepted the direction but flagged the meaning of UID zero and compiler cast warnings in #25 and #26; Andrew developed the prototype in #27, fixing translation, retaining the first known sender, and tightening the psql test.
- Chao supplied a pg_funcptr_t cast solution in #30 and further const, documentation, and formatting feedback in #31, while Jakub repaired Windows and MinGW compilation and dispatch and reported successful CI in #32.
- Andrew consolidated those changes in #33, Chao and Jakub approved it in #34 and #35, and 3e2a1496ba landed with only whitespace changes.
- When Kirill Reshke questioned the post-freeze landing in #37, Andrew explained in #38 that it repaired the already committed feature; the redesign was applied on top rather than reverting the feature.
- Tom Lane reported OpenBSD buildfarm failures in #40 and reproduced zero sender PID/UID despite HAVE_SA_SIGINFO in #42, proposing that the psql DETAIL match become optional again.
- Jacob Champion separately reported an unreproduced Linux pg_basebackup test timeout in #43; Jakub requested further timing or server-log evidence in #47, and the supplied thread contains no resolution of that report.
- Andrew initially considered stronger platform testing but concluded it was excessive in #46, and Jakub confirmed the OpenBSD kernel's zero-initialization behavior in #48.
- Jakub supplied the optional-regex fix in #50, which landed unchanged as 446c400fd8; Andrew confirmed the push in #51.
- Chao demonstrated that ordinary clients received the operating-system sender identity in #52 and proposed errdetail_log() to retain diagnostics only in server logs; Jakub endorsed that change in #53.
- The server-log-only patch from #52 landed as b772f3fcad, with only incidental whitespace omitted, shortly before Andrew's closing message #54; the feature and its submitted follow-up fixes were committed, while the earlier metadata-transfer alternatives had been superseded.