summaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/pathkeys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/optimizer/path/pathkeys.c')
-rw-r--r--src/backend/optimizer/path/pathkeys.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/backend/optimizer/path/pathkeys.c b/src/backend/optimizer/path/pathkeys.c
index 440024a11d6..4436ac111d1 100644
--- a/src/backend/optimizer/path/pathkeys.c
+++ b/src/backend/optimizer/path/pathkeys.c
@@ -450,13 +450,6 @@ build_index_pathkeys(PlannerInfo *root,
bool nulls_first;
PathKey *cpathkey;
- /*
- * INCLUDING columns are stored in index unordered,
- * so they don't support ordered index scan.
- */
- if(i >= index->nkeycolumns)
- break;
-
/* We assume we don't need to make a copy of the tlist item */
indexkey = indextle->expr;