model-writtenrun 6302 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley reported that get_agg_clause_costs still incorrectly claimed to recursively find Aggrefs in an expression tree #1.
- His attached patch described processing PlannerInfo's aggtransinfos and agginfos instead and removed obsolete restrictions concerning subqueries and outer aggregates #1.
- Rowley subsequently found more outdated wording, including claims that the function sets aggtranstype and gathers counts, responsibilities now handled by preprocess_aggref() #2.
- Rowley committed the patch with expanded comment corrections and descriptions of transition and final-function costing as 2b58f894e5, derived from #1.
- The thread ended with Rowley confirming the fix had landed on master and PostgreSQL 14, explaining that the code was new to the still-unreleased PostgreSQL 14 and its comments should remain consistent #2.