Determine grouping strategies in create_grouping_paths.

Robert Haas <rhaas@postgresql.org>

Commit: b5996c2791f36a79332e3cb7130e9125a0372730
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-03-20T15:31:06Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/optimizer/plan/planner.c modified +82 −60

Discussion