model-writtenrun 2997 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo proposed allowing eligible HAVING clauses to move into WHERE with grouping sets, eliminating tuples before aggregation #1.
- The proposal uses the RTE_GROUP index to detect references to columns made nullable by grouping sets and keeps those clauses in HAVING #1.
- The regression test demonstrates that a > 1 moves below aggregation while b > 1 remains above it; Richard questioned how common this opportunity was but considered the optimization inexpensive #1.
- The sole patchset #1 landed unchanged apart from rebasing as 67a54b9e83, with no independent review recorded in the thread.
- Richard confirmed that he had pushed the change, closing the thread with the submitted work committed #2.