1
/*-------------------------------------------------------------------------
4
* index tuple qualification validity checking code
6
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
11
* $PostgreSQL: pgsql/src/backend/access/common/indexvalid.c,v 1.33 2004-12-31 21:59:07 pgsql Exp $
13
*-------------------------------------------------------------------------
18
#include "access/iqual.h"
19
#include "executor/execdebug.h"
21
/* ----------------------------------------------------------------
22
* index scan key qualification code
23
* ----------------------------------------------------------------
25
int NIndexTupleProcessed;
29
* index_keytest - does this index tuple satisfy the scan key(s)?
33
index_keytest(IndexTuple tuple,
40
while (scanKeySize > 0)
46
datum = index_getattr(tuple,
53
/* XXX eventually should check if SK_ISNULL */
57
if (key->sk_flags & SK_ISNULL)
60
test = FunctionCall2(&key->sk_func, datum, key->sk_argument);
62
if (!DatumGetBool(test))