mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Revert CREATE INDEX ... INCLUDING ...
It's not ready yet, revert two commits690c543550
- unstable test output386e3d7609
- patch itself
This commit is contained in:
@ -4520,7 +4520,7 @@ examine_variable(PlannerInfo *root, Node *node, int varRelid,
|
||||
* should match has_unique_index().
|
||||
*/
|
||||
if (index->unique &&
|
||||
index->nkeycolumns == 1 &&
|
||||
index->ncolumns == 1 &&
|
||||
(index->indpred == NIL || index->predOK))
|
||||
vardata->isunique = true;
|
||||
|
||||
@ -6563,7 +6563,7 @@ btcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
|
||||
* NullTest invalidates that theory, even though it sets eqQualHere.
|
||||
*/
|
||||
if (index->unique &&
|
||||
indexcol == index->nkeycolumns - 1 &&
|
||||
indexcol == index->ncolumns - 1 &&
|
||||
eqQualHere &&
|
||||
!found_saop &&
|
||||
!found_is_null_op)
|
||||
|
Reference in New Issue
Block a user