model-writtenrun 667 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tatsuro Yamada proposed enable_groupagg to discourage GroupAggregate after observing a roughly 35-fold improvement with HashAggregate, while leaving the underlying cost-estimation problem for separate investigation; his initial patch and corrected millisecond timings appear in #1 and #2.
- Ashutosh Bapat supported the missing counterpart to enable_hashagg, questioned mixed-strategy behavior, and requested focused testing in #3; Tatsuro explained his initial preference for GroupAggregate when both switches were off in #4 and added combination tests in #5.
- David Rowley recommended converting existing tests, extending the switch to sorted SetOp, and letting the planner choose when both aggregation switches are off in #6, and Tatsuro accepted those directions in #7.
- After about a year, Richard Guo revived the patch in #8, explaining why disabling Sort cannot reliably prevent sorted grouping, extending coverage to Group, Unique, and sorted SetOp, and converting existing tests to exercise hashed plans, including previously unreachable hashed UNION coverage.
- Richard corrected mixed aggregation in #9: individual sorted rollups receive the enable_groupagg penalty, while AGG_MIXED itself depends only on enable_hashagg and empty grouping sets receive no sorting penalty.
- Tatsuro asked whether the broader coverage should be split into smaller patches in #10, and Richard explained in #11 that the implementation already covered the requested nodes and remained manageable as one patch.
- Tatsuro reported successful installcheck testing and supplied two documentation additions atop the revised patch in #12, explicitly describing Unique and SetOp coverage for the aggregation switches.
- Richard declined those additions to preserve the conceptual documentation style of neighboring enable_* settings and posted a rebase in #13; Tatsuro accepted that decision and reported successful regression testing in #15.
- Tatsuro endorsed committing, requested shared authorship, and reported another roughly 25-fold improvement on his original query in #16.
- Richard committed #13 unchanged as e01b23b84e and announced the landing in #17, retaining Tatsuro as Author and himself as Co-authored-by; Tatsuro acknowledged completion in #18, with the feature landed and the documentation additions declined.