Factor some code out of create_grouping_paths.
authorRobert Haas <rhaas@postgresql.org>
Fri, 26 Jan 2018 20:03:12 +0000 (15:03 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 26 Jan 2018 20:03:12 +0000 (15:03 -0500)
commit9fd8b7d632570af90a0b374816f604f59bba11ad
treebd7d67fa87b51cda52ef2a11177d053e95e0e4de
parent4971d2a32209118ebbdc6611341b89901e340902
Factor some code out of create_grouping_paths.

This is preparatory refactoring to prepare the way for partition-wise
aggregate, which will reuse the new subroutines for child grouping
rels.  It also does not seem like a bad idea on general principle,
as the function was getting pretty long.

Jeevan Chalke.  The larger patch series of which this patch is a part
was reviewed and tested by Antonin Houska, Rajkumar Raghuwanshi,
Ashutosh Bapat, David Rowley, Dilip Kumar, Konstantin Knizhnik,
Pascal Legrand, and me.  Some cosmetic changes by me.

Discussion: http://postgr.es/m/CAM2+6=V64_xhstVHie0Rz=KPEQnLJMZt_e314P0jaT_oJ9MR8A@mail.gmail.com
src/backend/optimizer/plan/planner.c