model-writtenrun 2702 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread with #1, replacing SetOp's appended, flag-tagged input with separate outer and inner plans to reduce projection overhead and enable independently sorted inputs, while leaving slot conversion and presorted-path exploitation unfinished.
- Richard Guo identified the missing sorted-input planning steps in #2, and Tom implemented them in #4, also replacing set_operation_ordered_results_useful() with propagation of the relevant parent operation to fix nested set-operation planning.
- Richard separately reported a comment typo in #3, which David Rowley committed as b6612aedc5 and confirmed in #5.
- David's review in #6 suggested bulk tuple deformation, cheaper slot conversion, alternative equality comparisons, and clearer EXPLAIN naming; Tom accepted the deformation and conversion suggestions but retained the three-way comparison and existing naming, and favored avoiding planner backpatches to preserve released-branch plan stability in #7.
- Tom revised slot handling and adopted slot_getallattrs() in #8, then clarified in #9 that the crash depended on differing child slot types rather than simply missing duplicate-row tests, motivating regression coverage for projected and unprojected inputs.
- After intervening hash-table API fixes, Tom removed per-row slot conversion in #10 by explicitly determining whether both children returned the same fixed slot type.
- David proposed a reusable array-based slot helper in #11; Tom added that infrastructure, mixed-slot tests, and an additional patch extending it to Append, MergeAppend, and RecursiveUnion in #12.
- David approved the updated series but requested moving hash-disabling checks into create_setop_path() in #13, and Tom accepted that final adjustment in #14.
- The first patch from #12 landed unchanged as 2762792952, the four planner patches were combined with the requested check relocation as 8d96f57d5c, and the additional executor-node optimization landed unchanged as f0b900086a.
- After announcing those commits, Tom proposed removing the obsolete BuildTupleHashTable() compatibility wrapper, renaming the extended API, and repairing its documentation in #15.
- David accepted that cleanup and raised the remaining use of platform-dependent long parameters in #16; Tom deferred the datatype changes to separate work because they would require tracing planner fields and callers, and did not volunteer to undertake them in #17.
- The cleanup from #15 landed unchanged shortly after the final message as e0a2721f7c, completing all attached work while leaving the broader integer-type cleanup unassigned.