model-writtenrun 860 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Mar 2024 - Jan 2025 · 12 entries
- Richard Guo restarted eager aggregation in March 2024 with #1, building on Antonin Houska's earlier attempts while reducing invasive planner changes and path proliferation, and adding outer-join, partitionwise-join, and GEQO support.
- The early revisions stabilized regression output and fixed final-aggregation costing, dummy relations, nested aggregate expressions, HAVING dependencies, parallel safety, and nullable grouping keys, culminating in the processed_groupClause correction in #10.
- Paul George questioned whether aggregation could sometimes cross the nullable side of an outer join in #11; Richard demonstrated incorrect count results in #12 and retained the conservative restriction.
- Richard consolidated the implementation into two patches and simplified RelAggInfo construction in #14, then fixed duplicate grouping references in #15.
- Robert Haas requested realistic benchmarks and stronger limits on planning work in #16, while Tender Wang's TPC-DS testing in #17 exposed a regression that Robert traced to questionable aggregation placement and estimates in #25.
- Richard diagnosed incompatible row estimates among grouped paths in #30 and introduced per-path join estimates plus a fewest-row alternative in #34.
- Richard added a minimum row-reduction heuristic in #35; his subsequent benchmarks in #36 showed substantial gains on two TPC-DS queries and eliminated the earlier query-19 regression.
- Robert challenged mixing paths that return different row sets in #42 and developed the correctness requirement that every row within a partial group must behave identically in later joins in #44, which Richard adopted explicitly in #49.
- Jian He found a GROUPING() crash in HAVING in #46; #60 fixed it and extended image-equality checks to all partial grouping keys, while #61 added protection against moving non-leakproof aggregates past security qualifications.
- The discussion distinguished window functions evaluated after final aggregation from ordered aggregates whose ordering cannot safely survive arbitrary joins, and Richard retained conservative restrictions while explaining the window-function case in #57 and #59.
- After #64 incorporated Jian's operator-family simplification, Robert and Tom Lane opposed immediate commitment in #65 and #69, citing insufficient correctness documentation, search-space growth, inconsistent path row sets, and potentially unbounded aggregate states.
- The January discussion explored separate RelOptInfos, GroupPathInfo annotations, and stronger pruning; Richard supplied a counterexample to always preferring fewer rows in #76, while multiple intermediate aggregation stages remained future work in #79.
Jun - Oct 2025 · 12 entries
- Returning after several months, Richard proposed restricting aggregation to the lowest useful join level in #81; #82 implemented that strategy, removed special per-path costing machinery, attached grouped relations directly to their ordinary counterparts, expanded the correctness proof, and enabled the feature by default.
- Matheus Alcantara's testing revealed that the new memory guard and group-size threshold excluded useful benchmark cases, as Richard explained in #84; #86 allowed numeric accumulation and introduced min_eager_agg_group_size with a default of eight.
- Robert endorsed the simpler placement strategy in #91 but objected to hard-coded aggregate exceptions in #92, eventually suggesting reuse of negative aggtransspace values in #99.
- Richard added the catalog companion patch in #101, using negative aggtransspace as an unbounded-state sentinel; he explained in #103 why estimating memory as a per-row multiplier would be late, costly, and insufficiently safe.
- Richard optimized grouping equivalence-class lookup and avoided unnecessary group-count estimates in #104, after identifying planning overhead in the large TPC-DS query 64.
- Matheus reported a severe query-31 regression in #106; Richard traced it to inaccurate CTE estimates and nested-loop choices in #109, and repeated benchmarks with nested loops disabled, fresh statistics, and assertions disabled produced favorable results in #112.
- David Rowley's review in #115 prompted naming, parameter, comment, and test cleanup, as well as moving the catalog prerequisite first, all incorporated in #116.
- The catalog prerequisite from #116 landed as 185e304263 with an added catalog-version bump, followed by the unchanged feature patch as 8e11859102; Richard confirmed the landing in #119.
- The landed implementation deliberately left broader transformations such as Eager Count, Double Eager, and Eager Split outside scope, as explained in #98, and retained the narrower security handling described in #61.
- Richard noticed an obsolete function-OID header include in #126 and removed it with f997d777ad.
- David identified the stale disabled-by-default test comment in #117; Richard accepted the correction in #120, and 36fd8bde1b removed both the comment and redundant SET statement.
- Following David's and Robert's naming objections and Tom's suggestions in #122, Richard discussed the shorter apply_agg_at spelling in #123, which landed as 1206df04c2.
Mar - Apr 2026 · 2 entries
- In March 2026, Richard reported two correctness defects in #127: image-equality checks used a type's default collation instead of the expression's collation, and aggregate pushdown changed volatile-function execution counts.
- Matheus tested both fixes and supplied additional cases in #128; Richard incorporated selected tests and committed the collation correction as bd94845e8c and the volatility guard as 3a08a2a8b4, confirming both in #129.
May - Jun 2026 · 2 entries
- Radim Marek reported incorrect count results with NOT EXISTS in #130, and Tender reproduced a related semijoin failure in #131; Richard's #132 rejected partial aggregation specifically on inner-side relations while preserving valid outer-side optimization.
- Tender endorsed that narrower fix in #133, and it landed unchanged as ffeda04259; the final message, #134, confirms the push, leaving the feature and all bugfix submissions committed, with no outstanding attached series.