1996-08-27 23:50:29 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* skey.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* POSTGRES scan key definitions.
|
1996-08-27 23:50:29 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1998-09-01 06:40:42 +02:00
|
|
|
* $Id: skey.h,v 1.10 1998/09/01 04:34:29 momjian Exp $
|
1996-08-27 23:50:29 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Note:
|
1997-09-07 07:04:48 +02:00
|
|
|
* Needs more accessor/assignment routines.
|
1996-08-27 23:50:29 +02:00
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef SKEY_H
|
1996-08-27 23:50:29 +02:00
|
|
|
#define SKEY_H
|
|
|
|
|
1996-11-04 08:46:06 +01:00
|
|
|
#include <access/attnum.h>
|
1998-01-15 20:46:37 +01:00
|
|
|
#include <fmgr.h>
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef struct ScanKeyData
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
bits16 sk_flags; /* flags */
|
|
|
|
AttrNumber sk_attno; /* domain number */
|
|
|
|
RegProcedure sk_procedure; /* procedure OID */
|
1998-01-15 20:46:37 +01:00
|
|
|
FmgrInfo sk_func;
|
1997-09-08 04:41:22 +02:00
|
|
|
int32 sk_nargs;
|
|
|
|
Datum sk_argument; /* data to compare */
|
1997-09-08 23:56:23 +02:00
|
|
|
} ScanKeyData;
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef ScanKeyData *ScanKey;
|
1996-08-27 23:50:29 +02:00
|
|
|
|
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#define SK_ISNULL 0x1
|
|
|
|
#define SK_UNARY 0x2
|
|
|
|
#define SK_NEGATE 0x4
|
|
|
|
#define SK_COMMUTE 0x8
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#define ScanUnmarked 0x01
|
1996-08-27 23:50:29 +02:00
|
|
|
#define ScanUncheckedPrevious 0x02
|
1997-09-07 07:04:48 +02:00
|
|
|
#define ScanUncheckedNext 0x04
|
1996-08-27 23:50:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes for functions in access/common/scankey.c
|
|
|
|
*/
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void ScanKeyEntrySetIllegal(ScanKey entry);
|
1998-09-01 06:40:42 +02:00
|
|
|
extern void ScanKeyEntryInitialize(ScanKey entry, bits16 flags,
|
1997-09-07 07:04:48 +02:00
|
|
|
AttrNumber attributeNumber, RegProcedure procedure, Datum argument);
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* SKEY_H */
|