aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/plan/createplan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/optimizer/plan/createplan.c')
-rw-r--r--src/backend/optimizer/plan/createplan.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c
index 4bb38160b33..ec73789bc21 100644
--- a/src/backend/optimizer/plan/createplan.c
+++ b/src/backend/optimizer/plan/createplan.c
@@ -2623,12 +2623,7 @@ create_windowagg_plan(PlannerInfo *root, WindowAggPath *best_path)
/*
* Convert SortGroupClause lists into arrays of attr indexes and equality
- * operators, as wanted by executor. (Note: in principle, it's possible
- * to drop some of the sort columns, if they were proved redundant by
- * pathkey logic. However, it doesn't seem worth going out of our way to
- * optimize such cases. In any case, we must *not* remove the ordering
- * column for RANGE OFFSET cases, as the executor needs that for in_range
- * tests even if it's known to be equal to some partitioning column.)
+ * operators, as wanted by executor.
*/
partColIdx = (AttrNumber *) palloc(sizeof(AttrNumber) * numPart);
partOperators = (Oid *) palloc(sizeof(Oid) * numPart);