model-writtenrun 704 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jul - Aug 2024 · 2 entries
- David Christensen proposed GROUP BY ALL as shorthand for grouping by non-aggregate SELECT-list expressions, emphasizing interactive data exploration and avoiding repeated expressions #1 #7 #8.
- David G. Johnston and Tom Lane questioned readability, semantics, and the lack of standardization, while Peter Eisentraut documented matching syntax in other databases and Jelte Fennema-Nio supported its exploratory use; the proposal then remained inactive for over a year #2 #4 #15 #16.
Aug - Sep 2025 · 10 entries
- Peter revived the work when GROUP BY ALL entered the SQL standard draft and identified the initial patch's failure to detect aggregates inside expressions; David resumed development with a rebased patch and broader aggregate detection #23 #25 #27.
- Tom showed that contain_agg_clause was unsuitable for subqueries and recommended query-level-aware aggregate detection, while jian he requested deparsing tests that exposed a bug; David incorporated both corrections and expanded regression coverage #32 #35 #37 #38 #39.
- Tom requested moving expansion into transformGroupClause, skipping junk target entries, improving error locations, and using EXPLAIN to expose grouping keys; David implemented that review in the next submission #40 #41.
- Tom supplied a cleanup patch and discovered that transformPLAssignStmt already failed to copy groupDistinct, embedding the missing assignment while proposing a separate backpatch and removal of duplicated parsing code #43.
- For unresolved semantics, Peter specified GROUP BY () when no grouping candidates remain and suggested initially rejecting window functions or subqueries, but Tom argued for excluding window expressions and aggregates belonging to the current query level while preserving PostgreSQL's broader expression support #42 #44 #45 #46.
- Tom extracted the unchanged groupDistinct assignment from his cleanup patch into a separately backpatched bug fix, leaving the GROUP BY ALL feature for later #43 0be39b4b1a.
- Tom then implemented the discussed refactor without a matching attachment, routing PL/pgSQL assignment analysis through transformSelectStmt and a target-list callback to prevent future omissions caused by duplicated code #43 b0fb2c6aa5.
- Tom rebased the feature over those commits, implemented window-function exclusion and the empty-grouping fallback, and reduced redundant tests; documentation remained outstanding #48.
- Chao Li proposed special optimization for grouping by ctid, but Tom rejected that additional work #49 #50.
- David supplied documentation, renamed the internal flag to groupByAll, and added coverage for ALL followed by explicit grouping elements; Tom committed this version with documentation edits, synopsis updates, test-comment cleanup, and a catalog-version bump #51 #52 #53 ef38a4d975.
Apr 2026 · 1 entry
- Peter reopened the window-function semantics question in April 2026 because the standard still lacked guidance, and David G. Johnston discussed an alternative interpretation based on processing window arguments before window evaluation; no implementation change resulted in this thread #56 #57.
Jun - Jul 2026 · 2 entries
- After securing standard clarifications matching PostgreSQL's existing behavior, Peter proposed updating comments and documentation, and Tom suggested wording that applied the same-query-level qualification specifically to aggregates #58 #59.
- Peter committed the clarification with Tom's wording and an additional matching update in queries.sgml, then confirmed completion; the feature and follow-up changes were all landed by the thread's last message, with no outstanding attached patch 7f0998f87b #60.