aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common/indexvalid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/common/indexvalid.c')
-rw-r--r--src/backend/access/common/indexvalid.c78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/backend/access/common/indexvalid.c b/src/backend/access/common/indexvalid.c
deleted file mode 100644
index 29ee54c3bfe..00000000000
--- a/src/backend/access/common/indexvalid.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * indexvalid.c
- * index tuple qualification validity checking code
- *
- * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- *
- * IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/common/indexvalid.c,v 1.34 2005/06/24 00:18:52 tgl Exp $
- *
- *-------------------------------------------------------------------------
- */
-
-#include "postgres.h"
-
-#include "access/iqual.h"
-#include "executor/execdebug.h"
-
-/* ----------------------------------------------------------------
- * index scan key qualification code
- * ----------------------------------------------------------------
- */
-int NIndexTupleProcessed;
-
-
-/* ----------------
- * index_keytest - does this index tuple satisfy the scan key(s)?
- * ----------------
- */
-bool
-index_keytest(IndexTuple tuple,
- TupleDesc tupdesc,
- int scanKeySize,
- ScanKey key)
-{
- IncrIndexProcessed();
-
- while (scanKeySize > 0)
- {
- Datum datum;
- bool isNull;
- Datum test;
-
- datum = index_getattr(tuple,
- key->sk_attno,
- tupdesc,
- &isNull);
-
- if (isNull)
- {
- /* XXX eventually should check if SK_ISNULL */
- return false;
- }
-
- if (key->sk_flags & SK_ISNULL)
- return false;
-
- test = FunctionCall2(&key->sk_func, datum, key->sk_argument);
-
- if (key->sk_flags & SK_NEGATE)
- {
- if (DatumGetBool(test))
- return false;
- }
- else
- {
- if (!DatumGetBool(test))
- return false;
- }
-
- key++;
- scanKeySize--;
- }
-
- return true;
-}