aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_gist.h
blob: 0859002d03707878b63379e63beaa0da6866b416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);