mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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
This commit is contained in:
29
contrib/btree_gist/btree_gist.h
Normal file
29
contrib/btree_gist/btree_gist.h
Normal file
@ -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);
|
||||
|
Reference in New Issue
Block a user