model-writtenrun 8140 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh reported that a parallel worker could hang while sending an error larger than its 16 KB communication buffer because sigsetjmp restored a mask blocking the leader's wakeup signal, and proposed unblocking signals during error recovery in #1.
- Bharath reproduced the failure with the parallel-copy work, verified the proposed fix and regression suites in #3, then argued in #4 for unblocking only SIGUSR1 to limit activity during error recovery.
- Vignesh adopted selective unblocking in #5; Bharath restricted it to parallel workers and restored blocking after EmitErrorReport() in #6, and subsequent revisions extracted helpers and exposed documented signal-control functions in #7 and #9.
- After Bharath reported successful testing in #10, Robert rejected the selective-signal design in #11 because SIGUSR1 itself serves many purposes and the extra machinery provided no convincing safety benefit.
- Bharath separately identified that several auxiliary processes modified BlockSig without installing it before sigsetjmp, leaving SIGQUIT blocked during error recovery, in #12.
- Tom returned to Vignesh's original approach in #14, placing unrestricted signal unblocking after HOLD_INTERRUPTS(); Robert examined that placement in #15, and Vignesh confirmed that the approach fixed the original problem in #21.
- Robert and Tom debated whether auxiliary processes should accept SIGQUIT during initialization and error recovery in #15, #16, #17, #18, and #19; Robert emphasized the state-independent exit handler, while Tom initially wanted evidence of a practical failure before changing longstanding behavior.
- Tom committed the parallel-worker fix from #14 as be4b0c0077, adding clearer commentary and a long-error regression test, and announced the landing in #22; the fix was backpatched through PostgreSQL 9.5.
- Tom reconsidered the SIGQUIT policy in #22, and Alvaro explained in #23 that the inconsistent setup could have been accidental; Tom then posted and tested a bgwriter-only prototype installing BlockSig immediately in #24.
- Tom expanded that prototype to the checkpointer, WAL writer, and WAL receiver, improved error-recovery comments, and committed 7634bd4f6d, announcing it in #26; this cleanup was not backpatched because no field failure had been established.
- When Tom asked whether other process types should follow the same SIGQUIT policy in #26, Robert argued for uniform immediate-shutdown responsiveness in #27, prompting Tom's centralized InitPostmasterChild implementation in #28.
- At the final message, #28, centralization was proposed and Tom still invited objections to switching WAL senders from quickdie to SignalHandlerForCrashExit; the supplied commit 44fc6e259b subsequently landed that patch unchanged, while explicitly leaving the statistics collector's differing behavior to separate work.