Determine grouping strategies in create_grouping_paths.

Partition-wise aggregate will call create_ordinary_grouping_paths
multiple times and we don't want to redo this work every time; have
the caller do it instead and pass the details down.

Patch by me, reviewed by Ashutosh Bapat.

Discussion: 
http://postgr.es/m/ca+tgmoy7vyyn9a7yhj1njl6zj6bkhmt4k-un9lrmxkyqrzy...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b5996c2791f36a79332e3cb7130e9125a0372730

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 142 ++++++++++++++++++++---------------
1 file changed, 82 insertions(+), 60 deletions(-)

Reply via email to