mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Revert CREATE INDEX ... INCLUDING ...
It's not ready yet, revert two commits690c543550
- unstable test output386e3d7609
- patch itself
This commit is contained in:
@ -2143,7 +2143,7 @@ match_clause_to_index(IndexOptInfo *index,
|
||||
{
|
||||
int indexcol;
|
||||
|
||||
for (indexcol = 0; indexcol < index->nkeycolumns; indexcol++)
|
||||
for (indexcol = 0; indexcol < index->ncolumns; indexcol++)
|
||||
{
|
||||
if (match_clause_to_indexcol(index,
|
||||
indexcol,
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user