@@ -7212,14 +7212,14 @@ create_partial_grouping_paths(PlannerInfo *root,
7212
7212
* Generate Gather and Gather Merge paths for a grouping relation or partial
7213
7213
* grouping relation.
7214
7214
*
7215
- * generate_gather_paths does most of the work, but we also consider a special
7216
- * case: we could try sorting the data by the group_pathkeys and then applying
7217
- * Gather Merge.
7215
+ * generate_useful_gather_paths does most of the work, but we also consider a
7216
+ * special case: we could try sorting the data by the group_pathkeys and then
7217
+ * applying Gather Merge.
7218
7218
*
7219
7219
* NB: This function shouldn't be used for anything other than a grouped or
7220
7220
* partially grouped relation not only because of the fact that it explicitly
7221
7221
* references group_pathkeys but we pass "true" as the third argument to
7222
- * generate_gather_paths ().
7222
+ * generate_useful_gather_paths ().
7223
7223
*/
7224
7224
static void
7225
7225
gather_grouping_paths (PlannerInfo * root , RelOptInfo * rel )
@@ -7379,10 +7379,11 @@ apply_scanjoin_target_to_paths(PlannerInfo *root,
7379
7379
* variations. So we drop old paths and thereby force the work to be done
7380
7380
* below the Append, except in the case of a non-parallel-safe target.
7381
7381
*
7382
- * Some care is needed, because we have to allow generate_gather_paths to
7383
- * see the old partial paths in the next stanza. Hence, zap the main
7384
- * pathlist here, then allow generate_gather_paths to add path(s) to the
7385
- * main list, and finally zap the partial pathlist.
7382
+ * Some care is needed, because we have to allow
7383
+ * generate_useful_gather_paths to see the old partial paths in the next
7384
+ * stanza. Hence, zap the main pathlist here, then allow
7385
+ * generate_useful_gather_paths to add path(s) to the main list, and
7386
+ * finally zap the partial pathlist.
7386
7387
*/
7387
7388
if (rel_is_partitioned )
7388
7389
rel -> pathlist = NIL ;
0 commit comments