mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Revert CREATE INDEX ... INCLUDING ...
It's not ready yet, revert two commits690c543550- unstable test output386e3d7609- patch itself
This commit is contained in:
@@ -809,7 +809,7 @@ tuplesort_begin_cluster(TupleDesc tupDesc,
|
||||
workMem, randomAccess ? 't' : 'f');
|
||||
#endif
|
||||
|
||||
state->nKeys = IndexRelationGetNumberOfKeyAttributes(indexRel); //FIXME
|
||||
state->nKeys = RelationGetNumberOfAttributes(indexRel);
|
||||
|
||||
TRACE_POSTGRESQL_SORT_START(CLUSTER_SORT,
|
||||
false, /* no unique check */
|
||||
@@ -900,7 +900,7 @@ tuplesort_begin_index_btree(Relation heapRel,
|
||||
workMem, randomAccess ? 't' : 'f');
|
||||
#endif
|
||||
|
||||
state->nKeys = IndexRelationGetNumberOfKeyAttributes(indexRel);
|
||||
state->nKeys = RelationGetNumberOfAttributes(indexRel);
|
||||
|
||||
TRACE_POSTGRESQL_SORT_START(INDEX_SORT,
|
||||
enforceUnique,
|
||||
@@ -919,6 +919,7 @@ tuplesort_begin_index_btree(Relation heapRel,
|
||||
state->enforceUnique = enforceUnique;
|
||||
|
||||
indexScanKey = _bt_mkscankey_nodata(indexRel);
|
||||
state->nKeys = RelationGetNumberOfAttributes(indexRel);
|
||||
|
||||
/* Prepare SortSupport data for each column */
|
||||
state->sortKeys = (SortSupport) palloc0(state->nKeys *
|
||||
|
||||
Reference in New Issue
Block a user