diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-02-19 03:46:00 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-02-19 03:46:00 +0000 |
commit | 4efbbd731899df673cab4415b9111744d9537a62 (patch) | |
tree | 493cf019daee5421f46dd296294a10e592eb79d4 /contrib/btree_gist/btree_gist.h | |
parent | 4996eea81cd52833cb8413c5105aba6937971748 (diff) | |
download | postgresql-4efbbd731899df673cab4415b9111744d9537a62.tar.gz postgresql-4efbbd731899df673cab4415b9111744d9537a62.zip |
We just released new version of contrib/btree_gist
(7.3 and current CVS) with support of int8, float4, float8
in addition to int4. Thanks Janko Richter for contribution.
Oleg Bartunov
Diffstat (limited to 'contrib/btree_gist/btree_gist.h')
-rw-r--r-- | contrib/btree_gist/btree_gist.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/btree_gist/btree_gist.h b/contrib/btree_gist/btree_gist.h new file mode 100644 index 00000000000..0859002d037 --- /dev/null +++ b/contrib/btree_gist/btree_gist.h @@ -0,0 +1,29 @@ +#include "postgres.h" + +#include "access/gist.h" +#include "access/itup.h" +#include "access/nbtree.h" + +#include "utils/palloc.h" +#include "utils/geo_decls.h" +#include "utils/elog.h" + +typedef int (*CMPFUNC) (const void *a, const void *b); +typedef void (*BINARY_UNION) (Datum *, char *); + + +/* used for sorting */ + +typedef struct rix +{ + int index; + char *r; +} RIX; + +/* +** Common btree-function (for all ops) +*/ + +extern GIST_SPLITVEC *btree_picksplit(bytea *entryvec, GIST_SPLITVEC *v, + BINARY_UNION bu, CMPFUNC cmp); + |