1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Revert buggy optimization of index scans

606c0123d6 attempted to reduce cost of index scans using > and <
strategies, though got that completely wrong in a few complex cases.

Revert whole patch until we find a safe optimization.
This commit is contained in:
Simon Riggs
2016-03-03 09:53:43 +00:00
parent 6c90996a4c
commit c7111d11b1
3 changed files with 0 additions and 35 deletions

View File

@ -1429,13 +1429,6 @@ _bt_checkkeys(IndexScanDesc scan,
bool isNull;
Datum test;
/*
* If the scan key has already matched we can skip this key, as long
* as the index tuple does not contain NULL values.
*/
if (key->sk_flags & SK_BT_MATCHED && !IndexTupleHasNulls(tuple))
continue;
/* row-comparison keys need special processing */
if (key->sk_flags & SK_ROW_HEADER)
{