diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2006-05-03 16:31:07 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2006-05-03 16:31:07 +0000 |
commit | 5320c6cf6b21811eda1910a7df6f05b992fe2aea (patch) | |
tree | 0d1c7aa43268011628a08e8f7a182c5bad20de3d /contrib/intarray/_int.h | |
parent | 2a58f3bff6ff9abda33af0ed117f068ee02d6c83 (diff) |
Make GIN opclass worked with intarray extensions
Diffstat (limited to 'contrib/intarray/_int.h')
-rw-r--r-- | contrib/intarray/_int.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/intarray/_int.h b/contrib/intarray/_int.h index af67435309e..6218cbcd20d 100644 --- a/contrib/intarray/_int.h +++ b/contrib/intarray/_int.h @@ -151,10 +151,17 @@ typedef struct #define COMPUTESIZE(size) ( HDRSIZEQT + size * sizeof(ITEM) ) #define GETQUERY(x) (ITEM*)( (char*)(x)+HDRSIZEQT ) +#define END 0 +#define ERR 1 +#define VAL 2 +#define OPR 3 +#define OPEN 4 +#define CLOSE 5 + bool signconsistent(QUERYTYPE * query, BITVEC sign, bool calcnot); bool execconsistent(QUERYTYPE * query, ArrayType *array, bool calcnot); - - +bool ginconsistent(QUERYTYPE * query, bool *check); +int4 shorterquery(ITEM * q, int4 len); int compASC(const void *a, const void *b); |