model-writtenrun 5055 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed replacing three havingQual checks with hasHavingQual in #1, because preprocessing folds HAVING TRUE to an empty expression even though the clause still affects grouping semantics; he recommended HEAD only because the mistakes affect cost estimates in difficult-to-test corner cases.
- Richard Guo endorsed the patch in #2, confirming that hasHavingQual preserves the required information before expression preprocessing.
- Etsuro Fujita acknowledged responsibility for the postgres_fdw oversights and supported the HEAD-only scope in #3.
- Tom committed #1 unchanged as 8bf66dedd8, without regression tests or backpatching because the cost-estimation errors were difficult to demonstrate and did not affect correctness.
- Tom confirmed the push and thanked the reviewers in #4, closing the thread with the entire patch landed.