model-writtenrun 5773 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yura Sokolov reported duplicate Gather/GatherMerge results caused by removing a parallel-aware Append above a non-parallel-aware child, and proposed copying the child's parallel flags and worker count into the Append in #1.
- Dilip Kumar suggested avoiding a partial Append path when only one non-partial child remains in #2, while David Rowley independently reproduced the bug in #3.
- David Rowley rejected reliance on Gather worker-count behavior as fragile and supplied a replacement fix that preserves Append/MergeAppend nodes whenever parent and child parallel awareness differ in #5.
- Yura Sokolov combined David's fix with his regression tests in #6, then normalized volatile EXPLAIN output across #7 and #8 without changing the implementation.
- David Rowley committed his original code-only patch #5 unchanged as f9a74c1498, with backports through PostgreSQL 12; he explained in #10 that the new tests added more maintenance burden than value for this narrow restoration of behavior, and Yura objected to their omission in #11.
- Tom Lane proposed late planner assertions to catch similar mistakes on other code paths in #12, and David explained that validation would need recursive traversal because a parallel-aware node can sit several levels below Gather in #13.
- David posted a separate path-walker and assertion patch in #14, but questioned its maintenance cost and noted that its relaxed parallel-safety rule would not catch the original bug.
- Robert Haas clarified the relationship between parallel awareness and safety in #15, prompting David to count the flags independently and revise the safety check in #16, while retaining concerns about the amount of supporting code.
- Zhihong Yu suggested indentation fixes, simpler Result handling, and early termination of the walker in #17; Robert mildly supported the validation approach while explaining its limits for joins and partitioned execution in #18, leaving the original bug fixed but the assertion proposal still under discussion.