model-writtenrun 2827 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Francesco Degrassi reported an uncancellable ParallelFinish hang caused by running parallel queries while holding an LWLock, supplied a reproducer using a SQL btree comparison function, and proposed blocking parallel planning when interrupts are held in #1.
- Noah Misch committed that approach as ac04aa84a7, adding regression coverage and broadening the condition to INTERRUPTS_CAN_BE_PROCESSED(); his explanation in #2 favored avoiding parallel infrastructure while uncancellable over explicitly polling worker messages.
- Tom Lane identified that cached plans could bypass the planner check in #3, prompting discussion of restrictions on support functions, releasing buffer locks, and bypassing the plan cache in #4, #5, and #6; concerns about performance, correctness, and test fidelity prevented those alternatives from becoming patches.
- Tom questioned whether disabling parallelism addressed enough of the broader problem in #7, while Peter Geoghegan rejected adding alternate btree paths that release locks around support functions and emphasized the original FDW use case in #8.
- Noah argued for preventing known accidental hangs without removing useful functionality and suggested diagnostics for executor use under LWLocks in #9; Francesco explained that such a warning would have exposed the FDW problem much earlier in #10, but no diagnostic patch followed.
- Revisiting the unresolved cached-plan concern during release-note work, Tom proposed rejecting executor startup with interrupts disabled in #11; Noah objected that this would break queries that currently succeed and suggested behaving as though no worker slots were available in #12.
- Tom and Noah agreed to suppress worker creation at execution time in #13 and #14, and Tom supplied #15, moving the check into InitializeParallelDSM and reverting the planner restriction to avoid plan instability while retaining the existing regression test.
- Noah approved the execution-time patch in #16, but Tom's forced-zero-worker testing exposed missing DSM handling in parallel hash-join reinitialization; #17 added that guard and tightened worker-count handling without changing the overall approach.
- Tom committed #17 as 6e39ca6e7e, with branch adaptations for absent worker-count APIs, replacing the original planner restriction while preserving its regression test.
- Noah approved the final revision after it had landed in #18; the submitted fixes were complete, although Tom had acknowledged in #17 that regression tests might not expose every remaining issue in the no-worker fallback path.