]> granicus.if.org Git - postgresql/commit
Build column mapping for grouping sets in all required cases.
authorAndres Freund <andres@anarazel.de>
Sun, 26 Jul 2015 13:17:44 +0000 (15:17 +0200)
committerAndres Freund <andres@anarazel.de>
Sun, 26 Jul 2015 14:53:12 +0000 (16:53 +0200)
commit65b86c1767a7dac0cc79dcfba7ba4cbd326dc03f
tree67226040ca4c35477ff4d8fe877a055b6b2cf0d4
parent60624f45fc12a249fd48ac7557238c974d8e5011
Build column mapping for grouping sets in all required cases.

The previous coding frequently failed to fail because for one it's
unusual to have rollup clauses with one column, and for another
sometimes the wrong mapping didn't cause obvious problems.

Author: Jeevan Chalke
Reviewed-By: Andrew Gierth
Discussion: CAM2+6=W=9=hQOipH0HAPbkun3Z3TFWij_EiHue0_6UX=oR=1kw@mail.gmail.com
Backpatch: 9.5, where grouping sets were introduced
src/backend/optimizer/plan/planner.c
src/test/regress/expected/groupingsets.out
src/test/regress/sql/groupingsets.sql