model-writtenrun 401 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tender Wang reported an issue originally found by Man Zeng: a single-child Append could lose its child's disabled-node count and allow a disabled IndexScan to beat an available SeqScan plus Sort; his patch copied the count and added a regression test #1.
- Richard Guo agreed with the fix because the redundant Append is removed before execution, added a comment explaining count inheritance, and dropped the plan-shape test over stability concerns; his revised patch initially proposed keeping the fix on master #2.
- David Rowley argued that honoring an explicitly disabled node type justified backpatching, especially because the bug made behavior depend on how many partitions were pruned, and Richard accepted that argument #3 #4.
- David further explained that avoiding unwanted plan changes should not prevent fixing ignored planner settings, while treating possible backpatches of two analogous fixes as a separate question #5.
- Richard committed de5659440d with the exact code diff from #2, revising the commit message to identify v18 as the affected release and explain backpatching; he confirmed the push and v18 backpatch in #6.
- Tender thanked Richard for pushing, closing the thread with the submitted fix landed and no remaining patch under review #7.