model-writtenrun 7890 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- James Coleman opened the thread in #1 after a parallel-unsafe correlated subquery exposed an incremental-sort failure, proposing both restoration of full-sort paths over unsorted inputs and explicit parallel-safety checks.
- In #2, Tomas Vondra accepted the unsorted-path diagnosis but questioned mixed-safety equivalence classes and backpatching a change that enabled additional plans; James argued in #3 that the behavior was already intended and suggested documenting the relationship between the sorting checks.
- James expanded the series in #4 with SRF rejection, removal of unnecessary volatile-expression target searches, and a documentation cross-reference, incorporating conclusions from related discussions.
- Tomas requested clearer parameter naming and documentation and suggested moving IS_SRF_CALL to tlist.h in #5; James's revision in #6 adopted require_parallel_safe and clarified proactive sorting while retaining the macro in optimizer.h because it was not specific to target lists.
- The separate 6bc2769832 replaced unsafe fallback sorting in create_gather_merge_plan with an error on December 15; although related concerns appear in #1, the supplied attribution points to thread #42997 rather than an attached patch here.
- Tomas posted a reviewed version of James's five patches in #7, polishing comments and commit messages and explaining that the added PlannerInfo argument made an ABI change unavoidable.
- The unsorted-path fix from #7 landed as f4a3c0b062 with an additional explanatory comment, and the parallel-safety fix landed unchanged as 86b7cca72d.
- The SRF restriction from #7 landed unchanged as fac1b470a9, while its volatile-expression cleanup landed as 9aff4dc01f with an additional unused-variable removal.
- The documentation patch from #7 landed as 1ca2eb1031 with lighter wording explaining the subset of restrictions needed for proactive sorts.
- Tomas confirmed in #8 that all five posted fixes had been committed and backpatched to PostgreSQL 13, and marked the Commitfest entry committed.