diff options
Diffstat (limited to 'src/backend/optimizer/plan/planner.c')
-rw-r--r-- | src/backend/optimizer/plan/planner.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c index adf68d87906..545b56bcafd 100644 --- a/src/backend/optimizer/plan/planner.c +++ b/src/backend/optimizer/plan/planner.c @@ -7212,14 +7212,14 @@ create_partial_grouping_paths(PlannerInfo *root, * Generate Gather and Gather Merge paths for a grouping relation or partial * grouping relation. * - * generate_gather_paths does most of the work, but we also consider a special - * case: we could try sorting the data by the group_pathkeys and then applying - * Gather Merge. + * generate_useful_gather_paths does most of the work, but we also consider a + * special case: we could try sorting the data by the group_pathkeys and then + * applying Gather Merge. * * NB: This function shouldn't be used for anything other than a grouped or * partially grouped relation not only because of the fact that it explicitly * references group_pathkeys but we pass "true" as the third argument to - * generate_gather_paths(). + * generate_useful_gather_paths(). */ static void gather_grouping_paths(PlannerInfo *root, RelOptInfo *rel) @@ -7379,10 +7379,11 @@ apply_scanjoin_target_to_paths(PlannerInfo *root, * variations. So we drop old paths and thereby force the work to be done * below the Append, except in the case of a non-parallel-safe target. * - * Some care is needed, because we have to allow generate_gather_paths to - * see the old partial paths in the next stanza. Hence, zap the main - * pathlist here, then allow generate_gather_paths to add path(s) to the - * main list, and finally zap the partial pathlist. + * Some care is needed, because we have to allow + * generate_useful_gather_paths to see the old partial paths in the next + * stanza. Hence, zap the main pathlist here, then allow + * generate_useful_gather_paths to add path(s) to the main list, and + * finally zap the partial pathlist. */ if (rel_is_partitioned) rel->pathlist = NIL; |