| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Recognize GROUPING() as a aggregate expression. |
| Date: | 2015-07-26 15:12:40 |
| Message-ID: | E1ZJNbU-0004Ov-Lz@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Recognize GROUPING() as a aggregate expression.
Previously GROUPING() was not recognized as a aggregate expression,
erroneously allowing the planner to move it from HAVING to WHERE.
Author: Jeevan Chalke
Reviewed-By: Andrew Gierth
Discussion: CAM2+6=WG9omG5rFOMAYBweJxmpTaapvVp5pCeMrE6BfpCwr4Og(at)mail(dot)gmail(dot)com
Backpatch: 9.5, where grouping sets were introduced
Branch
------
REL9_5_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/3500d1cc78f61927e05c0e73158b87ff24f81c09
Modified Files
--------------
src/backend/optimizer/util/clauses.c | 7 +++-
src/test/regress/expected/groupingsets.out | 62 ++++++++++++++++++++++++++++
src/test/regress/sql/groupingsets.sql | 17 ++++++++
3 files changed, 85 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2015-07-26 16:21:09 | pgsql: Check the relevant index element in ON CONFLICT unique index inf |
| Previous Message | Andres Freund | 2015-07-26 15:12:37 | pgsql: Allow to push down clauses from HAVING to WHERE when grouping se |