model-writtenrun 2080 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo proposed the PostgreSQL 19 change in #1: when an ordered Append or MergeAppend child needs additional sorting, use incremental sort if enabled and presorted keys exist, with matching costing and regression tests.
- Andrei Lepikhov found the implementation sound in #2, but requested cross-reference comments and questioned unconditional incremental-sort selection, suggesting cost-based subpath selection as an alternative.
- Robert Haas argued in #3 that unreliable group estimates favored improving runtime adaptation in the incremental-sort executor; Richard agreed in #4 and reported a heavily skewed benchmark where incremental sort still beat full sort, retaining the original approach.
- Richard posted an unchanged rebase and announced plans to commit in #5; in the final thread message #6, Andrei reported favorable comparisons for tiny and massive groups and supported committing, while leaving a cost-balance concern without a concrete counterexample.
- Richard committed #5 unchanged as 55a780e947 on July 8, completing the submitted feature without the suggested architectural changes; the commit explicitly excluded backpatching because it could change query plans.