Determine grouping strategies in create_grouping_paths.
authorRobert Haas <rhaas@postgresql.org>
Tue, 20 Mar 2018 15:31:06 +0000 (11:31 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 20 Mar 2018 15:31:06 +0000 (11:31 -0400)
commitb5996c2791f36a79332e3cb7130e9125a0372730
tree7ea9fcbc3f63e3e90c999e85f1f809cf814b4d2b
parent4f15e5d09de276fb77326be5567dd9796008ca2e
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-un9LRmXkyqRZyynA@mail.gmail.com
src/backend/optimizer/plan/planner.c