GROUPING SETS
GROUPING SETS, ROLLUP and CUBE, including hashed grouping sets and GROUP BY DISTINCT. Introduced in PostgreSQL 9.5.
Versions
- PostgreSQL 19 · shipped · improved · minor · 1 commit · +127 / -7 lines
- PostgreSQL 18 · shipped · improved · moderate · 1 commit · +35 / -8 lines
Threads
- BUG #19798: "failed to build any 4-way joins" with ROLLUP over a LATERAL subquery that references the nullable s
- BUG #19837: ORDER BY/DISTINCT ON use wrong column with grouping set duplicates
- BUG #19835: view with GROUP BY ROLLUP over duplicate columns changes results after dump/restore
- BUG #19783: Sorted GROUPING SETS return a grouping column's value in a set that leaves it out
- BUG #19752: GROUP BY on a constant and a cast to a length-limited array type crashes the server while planning
- [PATCH] Fix grouping-set nulling of variable-free grouping expressions
- BUG #19785: Sorted GROUPING SETS return a grouping column's value in a set that leaves it out
- pg_get_viewdef() produces non-round-trippable SQL for views with USING join on mismatched integer types
- Wrong results with grouping sets
- pg18 bug? SELECT query doesn't work
- BUG #19353: Error XX000 if referencing expanded array in grouping set: variable not found in subplan target list
- Issue with query_is_distinct_for() and grouping sets
- Inconsistent Behavior of GROUP BY ROLLUP in v17 vs master
- Wrong results with subquery pullup and grouping sets
- 回复:Re: Incorrect sort result caused by ROLLUP and WHERE operation
- 回复:Re: Incorrect sort result caused by ROLLUP and WHERE operation
- Incorrect sort result caused by ROLLUP and WHERE operation
- BUG #18758: Incorrect query result caused by ROLLUP operation
- BUG #18682: Null grouping set with empty table returns a row contains null.
- BUG #18662: ORDER BY after GROUPING SETS does not order correctly for certain WHERE condition
- Allow pushdown of HAVING clauses with grouping sets
- Query results vary depending on the plan cache mode used
- weird GROUPING SETS and ORDER BY behaviour
- An oversight in ExecInitAgg for grouping sets
- Sort Order inconsistent when using Grouping Sets Rollup
- Multiple grouping set specs referencing duplicate alias
- BUG #17479: "plan should not reference subplan's variable" when calling `grouping` on result of subquery
- BUG #17088: FailedAssertion in prepagg.c
- Sort keys are omitted incorrectly after grouping sets
- BUG #17071: ORDER BY gets ignored when result set has only one row, but another one gets added by rollup()
- BUG #17067: FailedAssertion at castNodeImpl
- Is the testing a bit too light on GROUP BY DISTINCT?
- GROUP BY DISTINCT
- BUG #16585: Wrong filtering on a COALESCE field after using GROUPING SETS
- Additional size of hash table is alway zero for hash aggregates
- Re: Optimizer Doesn't Push Down Where Expressions on Rollups
- GROUPING SETS and SQL standard
- Fix up grouping sets reorder
- Patch to fix write after end of array in hashed agg initialization
- cube grouping
- PostgreSQL 10: Segmentation fault when using GROUPING SETS with all unsortable columns
- BUG #15053: SIGSEGV - While executing query with cube agregator
- Difference in behaviour between 9.6 and 10.1: GROUPING with ROLLUP , difference in order and error with unnest
- Improper const-evaluation of HAVING with grouping sets and subquery pullup