model-writtenrun 7348 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dmitry Dolgov revived Teodor Sigaev’s GROUP BY reordering work with a proof of concept that generated additional ordinary and incremental sort paths, while acknowledging rudimentary costing, unhandled skew, and temporarily omitted partial-grouping support #1.
- Tomas Vondra supported generating alternative paths but requested refactoring of the increasingly complex grouping planner and further costing work #2.
- Peter Geoghegan proposed using C collation for some new sort paths, while noting possible conflicts with index ordering; Tomas Vondra recommended keeping collation changes outside this patch until ordering selection and costing were settled #3 #4.
- Dmitry Dolgov agreed to pursue planner refactoring and restore the omitted partial-grouping support, explaining that limited test coverage had motivated its removal #5.
- After more than a year, Andrei Lepikhov submitted a reviewed and cleaned-up implementation with bounded permutation search, shared sort costing, and restored partial-grouping support; at the thread’s last message, he considered the core idea stable but cost estimation unresolved and suggested a conservative strategy #6.
- The work subsequently landed as db0d67db24, committed by Tomas Vondra from the later matching patchset #503597 in thread #38793, superseding the previous attribution to this thread’s earlier implementation #6.