@@ -5390,9 +5390,9 @@ make_sort(Plan *lefttree, int numCols,
5390
5390
* prepare_sort_from_pathkeys
5391
5391
* Prepare to sort according to given pathkeys
5392
5392
*
5393
- * This is used to set up for both Sort and MergeAppend nodes. It calculates
5394
- * the executor's representation of the sort key information, and adjusts the
5395
- * plan targetlist if needed to add resjunk sort columns.
5393
+ * This is used to set up for Sort, MergeAppend, and Gather Merge nodes. It
5394
+ * calculates the executor's representation of the sort key information, and
5395
+ * adjusts the plan targetlist if needed to add resjunk sort columns.
5396
5396
*
5397
5397
* Input parameters:
5398
5398
* 'lefttree' is the plan node which yields input tuples
@@ -5416,7 +5416,7 @@ make_sort(Plan *lefttree, int numCols,
5416
5416
*
5417
5417
* If the pathkeys include expressions that aren't simple Vars, we will
5418
5418
* usually need to add resjunk items to the input plan's targetlist to
5419
- * compute these expressions, since the Sort/ MergeAppend node itself won't
5419
+ * compute these expressions, since a Sort or MergeAppend node itself won't
5420
5420
* do any such calculations. If the input plan type isn't one that can do
5421
5421
* projections, this means adding a Result node just to do the projection.
5422
5422
* However, the caller can pass adjust_tlist_in_place = TRUE to force the
0 commit comments