summaryrefslogtreecommitdiff
path: root/src/backend/access/nbtree/nbtutils.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2016-03-03 09:50:38 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2016-03-03 09:50:38 +0000
commitbf7ced5e2dc8622f88129437a9adafc0bdd83041 (patch)
treeba6882b060c12d3fd3f428792bcd1553e714070d /src/backend/access/nbtree/nbtutils.c
parentf8a75881f90f88f4dc54f3692e4e1691cf2c0a91 (diff)
Revert buggy optimization of index scans
606c0123d627 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.
Diffstat (limited to 'src/backend/access/nbtree/nbtutils.c')
-rw-r--r--src/backend/access/nbtree/nbtutils.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c
index 91331bad651..7857c77b220 100644
--- a/src/backend/access/nbtree/nbtutils.c
+++ b/src/backend/access/nbtree/nbtutils.c
@@ -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)
{