mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Cleanup vectors of GISTENTRY and eliminate problem with 64-bit strict-aligned
boxes. Change interface to user-defined GiST support methods union and picksplit. Now instead of bytea struct it used special GistEntryVector structure.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/access/gist.h,v 1.39 2003/11/29 22:40:55 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/include/access/gist.h,v 1.40 2004/03/30 15:45:33 teodor Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -157,6 +157,19 @@ typedef struct GISTENTRY
|
||||
bool leafkey;
|
||||
} GISTENTRY;
|
||||
|
||||
|
||||
/*
|
||||
* Vector of GISTENTRY struct's, user-defined
|
||||
* methods union andpick split takes it as one of args
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
int32 n; /* number of elements */
|
||||
GISTENTRY vector[1];
|
||||
} GistEntryVector;
|
||||
|
||||
#define GEVHDRSZ ( offsetof(GistEntryVector, vector[0]) )
|
||||
|
||||
/*
|
||||
* macro to initialize a GISTENTRY
|
||||
*/
|
||||
|
Reference in New Issue
Block a user