mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	boxes. Change interface to user-defined GiST support methods union and picksplit. Now instead of bytea struct it used special GistEntryVector structure.
		
			
				
	
	
		
			26 lines
		
	
	
		
			479 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			479 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "postgres.h"
 | |
| 
 | |
| #include "access/gist.h"
 | |
| #include "access/itup.h"
 | |
| #include "access/nbtree.h"
 | |
| #include "utils/geo_decls.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(GistEntryVector *entryvec, GIST_SPLITVEC *v,
 | |
| 				BINARY_UNION bu, CMPFUNC cmp);
 |