@@ -7212,14 +7212,14 @@ create_partial_grouping_paths(PlannerInfo *root,
72127212 * Generate Gather and Gather Merge paths for a grouping relation or partial
72137213 * grouping relation.
72147214 *
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.
72187218 *
72197219 * NB: This function shouldn't be used for anything other than a grouped or
72207220 * partially grouped relation not only because of the fact that it explicitly
72217221 * references group_pathkeys but we pass "true" as the third argument to
7222- * generate_gather_paths ().
7222+ * generate_useful_gather_paths ().
72237223 */
72247224static void
72257225gather_grouping_paths (PlannerInfo * root , RelOptInfo * rel )
@@ -7379,10 +7379,11 @@ apply_scanjoin_target_to_paths(PlannerInfo *root,
73797379 * variations. So we drop old paths and thereby force the work to be done
73807380 * below the Append, except in the case of a non-parallel-safe target.
73817381 *
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.
73867387 */
73877388 if (rel_is_partitioned )
73887389 rel -> pathlist = NIL ;
0 commit comments