model-writtenrun 8258 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jehan-Guillaume de Rorthais reported that EXPLAIN buffer counts above Gather Merge omitted parallel-worker activity and supplied a fix that starts instrumentation before recursively shutting down child nodes #1.
- Amit Kapila supported the instrumentation fix and also advocated releasing exhausted Gather Merge workers promptly; Jehan explained why the general accounting fix was still needed, and they separated the backpatchable bug fix from a possible HEAD-only resource-release change #2 #3 #4 #5.
- Jehan reproduced the bug on PostgreSQL 11 through HEAD and supplied branch-specific patches back to PostgreSQL 10, whose shutdown ordering showed the same defect even though he initially could not obtain a Gather Merge plan there #7.
- Jehan posted the separate worker-release patch and asked about releasing workers individually; Amit deferred that patch until after the bug fix and argued that individual cleanup offered little benefit because workers already exit when their work finishes #8 #11.
- Amit demonstrated how to reproduce the issue on PostgreSQL 10 and posted the accounting fix with a revised commit message; Jehan confirmed successful testing and proposed wording that Amit agreed to adopt #9 #10 #12.
- Amit committed the accounting fix as 2a2494229a, using the code from #9 with a light commit-message edit and backpatches through PostgreSQL 10, then announced the push #13.
- The separate worker-release patch remained unresolved in the thread: months later, Jehan revived it and asked whether it had been overlooked, with no subsequent resolution shown #15.