2005-05-17 05:34:18 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* gist_private.h
|
|
|
|
* private declarations for GiST -- declarations related to the
|
|
|
|
* internal implementation of GiST, not the public API
|
|
|
|
*
|
2010-01-02 17:58:17 +01:00
|
|
|
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
2005-05-17 05:34:18 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/access/gist_private.h
|
2005-05-17 05:34:18 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef GIST_PRIVATE_H
|
|
|
|
#define GIST_PRIVATE_H
|
|
|
|
|
|
|
|
#include "access/gist.h"
|
2006-07-11 19:04:13 +02:00
|
|
|
#include "access/itup.h"
|
2008-06-19 02:46:06 +02:00
|
|
|
#include "storage/bufmgr.h"
|
2005-05-17 05:34:18 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
#define GIST_UNLOCK BUFFER_LOCK_UNLOCK
|
2005-06-27 14:45:23 +02:00
|
|
|
#define GIST_SHARE BUFFER_LOCK_SHARE
|
|
|
|
#define GIST_EXCLUSIVE BUFFER_LOCK_EXCLUSIVE
|
|
|
|
|
|
|
|
|
2005-05-17 05:34:18 +02:00
|
|
|
/*
|
2005-06-27 14:45:23 +02:00
|
|
|
* XXX old comment!!!
|
2005-05-17 05:34:18 +02:00
|
|
|
* When we descend a tree, we keep a stack of parent pointers. This
|
|
|
|
* allows us to follow a chain of internal node points until we reach
|
|
|
|
* a leaf node, and then back up the stack to re-examine the internal
|
|
|
|
* nodes.
|
|
|
|
*
|
|
|
|
* 'parent' is the previous stack entry -- i.e. the node we arrived
|
|
|
|
* from. 'block' is the node's block number. 'offset' is the offset in
|
|
|
|
* the node's page that we stopped at (i.e. we followed the child
|
|
|
|
* pointer located at the specified offset).
|
|
|
|
*/
|
2005-06-27 14:45:23 +02:00
|
|
|
typedef struct GISTSearchStack
|
2005-05-17 05:34:18 +02:00
|
|
|
{
|
2005-06-27 14:45:23 +02:00
|
|
|
struct GISTSearchStack *next;
|
2005-05-17 05:34:18 +02:00
|
|
|
BlockNumber block;
|
2005-06-27 14:45:23 +02:00
|
|
|
/* to identify page changed */
|
|
|
|
GistNSN lsn;
|
|
|
|
/* to recognize split occured */
|
|
|
|
GistNSN parentlsn;
|
|
|
|
} GISTSearchStack;
|
2005-05-17 05:34:18 +02:00
|
|
|
|
|
|
|
typedef struct GISTSTATE
|
|
|
|
{
|
|
|
|
FmgrInfo consistentFn[INDEX_MAX_KEYS];
|
|
|
|
FmgrInfo unionFn[INDEX_MAX_KEYS];
|
|
|
|
FmgrInfo compressFn[INDEX_MAX_KEYS];
|
|
|
|
FmgrInfo decompressFn[INDEX_MAX_KEYS];
|
|
|
|
FmgrInfo penaltyFn[INDEX_MAX_KEYS];
|
|
|
|
FmgrInfo picksplitFn[INDEX_MAX_KEYS];
|
|
|
|
FmgrInfo equalFn[INDEX_MAX_KEYS];
|
|
|
|
|
|
|
|
TupleDesc tupdesc;
|
|
|
|
} GISTSTATE;
|
|
|
|
|
2008-08-23 12:37:24 +02:00
|
|
|
typedef struct ItemResult
|
|
|
|
{
|
2009-06-11 16:49:15 +02:00
|
|
|
ItemPointerData heapPtr;
|
|
|
|
OffsetNumber pageOffset; /* offset in index page */
|
|
|
|
bool recheck;
|
2008-08-23 12:37:24 +02:00
|
|
|
} ItemResult;
|
|
|
|
|
2005-05-17 05:34:18 +02:00
|
|
|
/*
|
|
|
|
* When we're doing a scan, we need to keep track of the parent stack
|
|
|
|
* for the marked and current items.
|
|
|
|
*/
|
|
|
|
typedef struct GISTScanOpaqueData
|
|
|
|
{
|
2005-10-15 04:49:52 +02:00
|
|
|
GISTSearchStack *stack;
|
|
|
|
GISTSearchStack *markstk;
|
2009-06-11 16:49:15 +02:00
|
|
|
bool qual_ok; /* false if qual can never be satisfied */
|
2005-10-15 04:49:52 +02:00
|
|
|
GISTSTATE *giststate;
|
|
|
|
MemoryContext tempCxt;
|
|
|
|
Buffer curbuf;
|
2007-01-20 19:43:35 +01:00
|
|
|
ItemPointerData curpos;
|
2008-08-23 12:37:24 +02:00
|
|
|
|
2009-06-11 16:49:15 +02:00
|
|
|
ItemResult pageData[BLCKSZ / sizeof(IndexTupleData)];
|
|
|
|
OffsetNumber nPageData;
|
|
|
|
OffsetNumber curPageData;
|
2005-05-17 05:34:18 +02:00
|
|
|
} GISTScanOpaqueData;
|
|
|
|
|
|
|
|
typedef GISTScanOpaqueData *GISTScanOpaque;
|
|
|
|
|
2005-06-27 14:45:23 +02:00
|
|
|
/* XLog stuff */
|
2005-10-15 04:49:52 +02:00
|
|
|
extern const XLogRecPtr XLogRecPtrForTemp;
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2006-03-31 01:03:10 +02:00
|
|
|
#define XLOG_GIST_PAGE_UPDATE 0x00
|
|
|
|
#define XLOG_GIST_NEW_ROOT 0x20
|
|
|
|
#define XLOG_GIST_PAGE_SPLIT 0x30
|
|
|
|
#define XLOG_GIST_INSERT_COMPLETE 0x40
|
|
|
|
#define XLOG_GIST_CREATE_INDEX 0x50
|
2006-05-17 18:34:59 +02:00
|
|
|
#define XLOG_GIST_PAGE_DELETE 0x60
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2006-03-31 01:03:10 +02:00
|
|
|
typedef struct gistxlogPageUpdate
|
2005-10-15 04:49:52 +02:00
|
|
|
{
|
|
|
|
RelFileNode node;
|
|
|
|
BlockNumber blkno;
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
/*
|
|
|
|
* It used to identify completeness of insert. Sets to leaf itup
|
|
|
|
*/
|
|
|
|
ItemPointerData key;
|
|
|
|
|
2006-05-17 18:34:59 +02:00
|
|
|
/* number of deleted offsets */
|
|
|
|
uint16 ntodelete;
|
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
/*
|
|
|
|
* follow: 1. todelete OffsetNumbers 2. tuples to insert
|
|
|
|
*/
|
2006-03-31 01:03:10 +02:00
|
|
|
} gistxlogPageUpdate;
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
typedef struct gistxlogPageSplit
|
|
|
|
{
|
|
|
|
RelFileNode node;
|
|
|
|
BlockNumber origblkno; /* splitted page */
|
2006-03-31 01:03:10 +02:00
|
|
|
bool origleaf; /* was splitted page a leaf page? */
|
2005-06-27 14:45:23 +02:00
|
|
|
uint16 npage;
|
|
|
|
|
2006-03-31 01:03:10 +02:00
|
|
|
/* see comments on gistxlogPageUpdate */
|
2005-10-15 04:49:52 +02:00
|
|
|
ItemPointerData key;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* follow: 1. gistxlogPage and array of IndexTupleData per page
|
|
|
|
*/
|
2005-06-27 14:45:23 +02:00
|
|
|
} gistxlogPageSplit;
|
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
typedef struct gistxlogPage
|
|
|
|
{
|
|
|
|
BlockNumber blkno;
|
2006-03-31 01:03:10 +02:00
|
|
|
int num; /* number of index tuples following */
|
2005-10-15 04:49:52 +02:00
|
|
|
} gistxlogPage;
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
typedef struct gistxlogInsertComplete
|
|
|
|
{
|
|
|
|
RelFileNode node;
|
2005-06-27 14:45:23 +02:00
|
|
|
/* follows ItemPointerData key to clean */
|
|
|
|
} gistxlogInsertComplete;
|
|
|
|
|
2006-05-17 18:34:59 +02:00
|
|
|
typedef struct gistxlogPageDelete
|
|
|
|
{
|
|
|
|
RelFileNode node;
|
|
|
|
BlockNumber blkno;
|
|
|
|
} gistxlogPageDelete;
|
2006-03-31 01:03:10 +02:00
|
|
|
|
2005-06-27 14:45:23 +02:00
|
|
|
/* SplitedPageLayout - gistSplit function result */
|
2005-10-15 04:49:52 +02:00
|
|
|
typedef struct SplitedPageLayout
|
|
|
|
{
|
|
|
|
gistxlogPage block;
|
|
|
|
IndexTupleData *list;
|
|
|
|
int lenlist;
|
2006-10-04 02:30:14 +02:00
|
|
|
IndexTuple itup; /* union key for page */
|
2006-05-10 11:19:54 +02:00
|
|
|
Page page; /* to operate */
|
2005-10-15 04:49:52 +02:00
|
|
|
Buffer buffer; /* to write after all proceed */
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
struct SplitedPageLayout *next;
|
2005-06-27 14:45:23 +02:00
|
|
|
} SplitedPageLayout;
|
|
|
|
|
2005-06-14 13:45:14 +02:00
|
|
|
/*
|
|
|
|
* GISTInsertStack used for locking buffers and transfer arguments during
|
|
|
|
* insertion
|
|
|
|
*/
|
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
typedef struct GISTInsertStack
|
|
|
|
{
|
2005-06-14 13:45:14 +02:00
|
|
|
/* current page */
|
2005-10-15 04:49:52 +02:00
|
|
|
BlockNumber blkno;
|
2005-06-14 13:45:14 +02:00
|
|
|
Buffer buffer;
|
|
|
|
Page page;
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
/*
|
|
|
|
* log sequence number from page->lsn to recognize page update and
|
|
|
|
* compare it with page's nsn to recognize page split
|
|
|
|
*/
|
2005-06-27 14:45:23 +02:00
|
|
|
GistNSN lsn;
|
2005-10-15 04:49:52 +02:00
|
|
|
|
2005-06-14 13:45:14 +02:00
|
|
|
/* child's offset */
|
2005-10-15 04:49:52 +02:00
|
|
|
OffsetNumber childoffnum;
|
2005-06-14 13:45:14 +02:00
|
|
|
|
2005-06-27 14:45:23 +02:00
|
|
|
/* pointer to parent and child */
|
2005-10-15 04:49:52 +02:00
|
|
|
struct GISTInsertStack *parent;
|
|
|
|
struct GISTInsertStack *child;
|
2005-06-14 13:45:14 +02:00
|
|
|
|
2005-06-27 14:45:23 +02:00
|
|
|
/* for gistFindPath */
|
2005-10-15 04:49:52 +02:00
|
|
|
struct GISTInsertStack *next;
|
2005-06-14 13:45:14 +02:00
|
|
|
} GISTInsertStack;
|
|
|
|
|
2006-10-04 02:30:14 +02:00
|
|
|
typedef struct GistSplitVector
|
|
|
|
{
|
|
|
|
GIST_SPLITVEC splitVector; /* to/from PickSplit method */
|
2006-06-28 14:00:14 +02:00
|
|
|
|
2006-10-04 02:30:14 +02:00
|
|
|
Datum spl_lattr[INDEX_MAX_KEYS]; /* Union of subkeys in
|
|
|
|
* spl_left */
|
|
|
|
bool spl_lisnull[INDEX_MAX_KEYS];
|
|
|
|
bool spl_leftvalid;
|
2006-06-28 14:00:14 +02:00
|
|
|
|
2006-10-04 02:30:14 +02:00
|
|
|
Datum spl_rattr[INDEX_MAX_KEYS]; /* Union of subkeys in
|
|
|
|
* spl_right */
|
|
|
|
bool spl_risnull[INDEX_MAX_KEYS];
|
|
|
|
bool spl_rightvalid;
|
2006-06-28 14:00:14 +02:00
|
|
|
|
2006-10-04 02:30:14 +02:00
|
|
|
bool *spl_equiv; /* equivalent tuples which can be freely
|
|
|
|
* distributed between left and right pages */
|
2006-06-28 14:00:14 +02:00
|
|
|
} GistSplitVector;
|
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
2005-06-14 13:45:14 +02:00
|
|
|
Relation r;
|
2005-10-15 04:49:52 +02:00
|
|
|
IndexTuple *itup; /* in/out, points to compressed entry */
|
|
|
|
int ituplen; /* length of itup */
|
2006-07-02 04:23:23 +02:00
|
|
|
Size freespace; /* free space to be left */
|
2005-10-15 04:49:52 +02:00
|
|
|
GISTInsertStack *stack;
|
|
|
|
bool needInsertComplete;
|
2005-06-14 13:45:14 +02:00
|
|
|
|
|
|
|
/* pointer to heap tuple */
|
2005-10-15 04:49:52 +02:00
|
|
|
ItemPointerData key;
|
2005-06-14 13:45:14 +02:00
|
|
|
} GISTInsertState;
|
|
|
|
|
2005-05-17 05:34:18 +02:00
|
|
|
/* root page of a gist index */
|
|
|
|
#define GIST_ROOT_BLKNO 0
|
|
|
|
|
2005-06-20 12:29:37 +02:00
|
|
|
/*
|
|
|
|
* mark tuples on inner pages during recovery
|
|
|
|
*/
|
|
|
|
#define TUPLE_IS_VALID 0xffff
|
|
|
|
#define TUPLE_IS_INVALID 0xfffe
|
|
|
|
|
|
|
|
#define GistTupleIsInvalid(itup) ( ItemPointerGetOffsetNumber( &((itup)->t_tid) ) == TUPLE_IS_INVALID )
|
|
|
|
#define GistTupleSetValid(itup) ItemPointerSetOffsetNumber( &((itup)->t_tid), TUPLE_IS_VALID )
|
|
|
|
#define GistTupleSetInvalid(itup) ItemPointerSetOffsetNumber( &((itup)->t_tid), TUPLE_IS_INVALID )
|
2005-06-14 13:45:14 +02:00
|
|
|
|
2005-05-17 05:34:18 +02:00
|
|
|
/* gist.c */
|
|
|
|
extern Datum gistbuild(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum gistinsert(PG_FUNCTION_ARGS);
|
|
|
|
extern MemoryContext createTempGistContext(void);
|
|
|
|
extern void initGISTstate(GISTSTATE *giststate, Relation index);
|
|
|
|
extern void freeGISTstate(GISTSTATE *giststate);
|
2005-06-14 13:45:14 +02:00
|
|
|
extern void gistmakedeal(GISTInsertState *state, GISTSTATE *giststate);
|
2005-06-27 14:45:23 +02:00
|
|
|
extern void gistnewroot(Relation r, Buffer buffer, IndexTuple *itup, int len, ItemPointer key);
|
2005-06-06 19:01:25 +02:00
|
|
|
|
2006-05-10 11:19:54 +02:00
|
|
|
extern SplitedPageLayout *gistSplit(Relation r, Page page, IndexTuple *itup,
|
|
|
|
int len, GISTSTATE *giststate);
|
2005-10-15 04:49:52 +02:00
|
|
|
|
2006-03-31 01:03:10 +02:00
|
|
|
extern GISTInsertStack *gistFindPath(Relation r, BlockNumber child);
|
2005-06-27 14:45:23 +02:00
|
|
|
|
2005-06-14 13:45:14 +02:00
|
|
|
/* gistxlog.c */
|
2005-05-17 05:34:18 +02:00
|
|
|
extern void gist_redo(XLogRecPtr lsn, XLogRecord *record);
|
2006-03-24 05:32:13 +01:00
|
|
|
extern void gist_desc(StringInfo buf, uint8 xl_info, char *rec);
|
2005-06-14 13:45:14 +02:00
|
|
|
extern void gist_xlog_startup(void);
|
|
|
|
extern void gist_xlog_cleanup(void);
|
2006-08-07 18:57:57 +02:00
|
|
|
extern bool gist_safe_restartpoint(void);
|
2005-06-20 12:29:37 +02:00
|
|
|
extern IndexTuple gist_form_invalid_tuple(BlockNumber blkno);
|
|
|
|
|
2006-03-31 01:03:10 +02:00
|
|
|
extern XLogRecData *formUpdateRdata(RelFileNode node, Buffer buffer,
|
2006-10-04 02:30:14 +02:00
|
|
|
OffsetNumber *todelete, int ntodelete,
|
2005-10-15 04:49:52 +02:00
|
|
|
IndexTuple *itup, int ituplen, ItemPointer key);
|
2005-06-20 12:29:37 +02:00
|
|
|
|
2006-03-31 01:03:10 +02:00
|
|
|
extern XLogRecData *formSplitRdata(RelFileNode node,
|
|
|
|
BlockNumber blkno, bool page_is_leaf,
|
2005-10-15 04:49:52 +02:00
|
|
|
ItemPointer key, SplitedPageLayout *dist);
|
2005-06-20 12:29:37 +02:00
|
|
|
|
|
|
|
extern XLogRecPtr gistxlogInsertCompletion(RelFileNode node, ItemPointerData *keys, int len);
|
2005-05-17 05:34:18 +02:00
|
|
|
|
|
|
|
/* gistget.c */
|
|
|
|
extern Datum gistgettuple(PG_FUNCTION_ARGS);
|
2008-04-11 00:25:26 +02:00
|
|
|
extern Datum gistgetbitmap(PG_FUNCTION_ARGS);
|
2005-05-17 05:34:18 +02:00
|
|
|
|
2005-06-14 13:45:14 +02:00
|
|
|
/* gistutil.c */
|
2006-05-10 11:19:54 +02:00
|
|
|
|
|
|
|
#define GiSTPageSize \
|
2006-10-04 02:30:14 +02:00
|
|
|
( BLCKSZ - SizeOfPageHeaderData - MAXALIGN(sizeof(GISTPageOpaqueData)) )
|
2006-05-10 11:19:54 +02:00
|
|
|
|
2006-07-11 23:05:57 +02:00
|
|
|
#define GIST_MIN_FILLFACTOR 10
|
2006-07-04 00:45:41 +02:00
|
|
|
#define GIST_DEFAULT_FILLFACTOR 90
|
|
|
|
|
|
|
|
extern Datum gistoptions(PG_FUNCTION_ARGS);
|
2006-05-10 11:19:54 +02:00
|
|
|
extern bool gistfitpage(IndexTuple *itvec, int len);
|
2006-07-02 04:23:23 +02:00
|
|
|
extern bool gistnospace(Page page, IndexTuple *itvec, int len, OffsetNumber todelete, Size freespace);
|
2005-11-06 23:39:21 +01:00
|
|
|
extern void gistcheckpage(Relation rel, Buffer buf);
|
2005-10-15 04:49:52 +02:00
|
|
|
extern Buffer gistNewBuffer(Relation r);
|
2008-06-12 11:12:31 +02:00
|
|
|
extern void gistfillbuffer(Page page, IndexTuple *itup, int len,
|
2009-06-11 16:49:15 +02:00
|
|
|
OffsetNumber off);
|
2006-05-17 18:34:59 +02:00
|
|
|
extern IndexTuple *gistextractpage(Page page, int *len /* out */ );
|
2005-10-15 04:49:52 +02:00
|
|
|
extern IndexTuple *gistjoinvector(
|
|
|
|
IndexTuple *itvec, int *len,
|
|
|
|
IndexTuple *additvec, int addlen);
|
2006-10-04 02:30:14 +02:00
|
|
|
extern IndexTupleData *gistfillitupvec(IndexTuple *vec, int veclen, int *memlen);
|
2006-05-19 18:15:17 +02:00
|
|
|
|
2005-06-14 13:45:14 +02:00
|
|
|
extern IndexTuple gistunion(Relation r, IndexTuple *itvec,
|
2005-10-15 04:49:52 +02:00
|
|
|
int len, GISTSTATE *giststate);
|
2005-06-14 13:45:14 +02:00
|
|
|
extern IndexTuple gistgetadjusted(Relation r,
|
2005-10-15 04:49:52 +02:00
|
|
|
IndexTuple oldtup,
|
|
|
|
IndexTuple addtup,
|
|
|
|
GISTSTATE *giststate);
|
2005-06-14 13:45:14 +02:00
|
|
|
extern IndexTuple gistFormTuple(GISTSTATE *giststate,
|
2006-06-28 14:00:14 +02:00
|
|
|
Relation r, Datum *attdata, bool *isnull, bool newValues);
|
2005-06-14 13:45:14 +02:00
|
|
|
|
|
|
|
extern OffsetNumber gistchoose(Relation r, Page p,
|
2005-10-15 04:49:52 +02:00
|
|
|
IndexTuple it,
|
|
|
|
GISTSTATE *giststate);
|
2005-06-14 13:45:14 +02:00
|
|
|
extern void gistcentryinit(GISTSTATE *giststate, int nkey,
|
2005-10-15 04:49:52 +02:00
|
|
|
GISTENTRY *e, Datum k,
|
|
|
|
Relation r, Page pg,
|
2006-06-28 14:00:14 +02:00
|
|
|
OffsetNumber o, bool l, bool isNull);
|
2006-05-19 18:15:17 +02:00
|
|
|
|
2005-06-14 13:45:14 +02:00
|
|
|
extern void GISTInitBuffer(Buffer b, uint32 f);
|
|
|
|
extern void gistdentryinit(GISTSTATE *giststate, int nkey, GISTENTRY *e,
|
|
|
|
Datum k, Relation r, Page pg, OffsetNumber o,
|
2006-06-28 14:00:14 +02:00
|
|
|
bool l, bool isNull);
|
|
|
|
|
|
|
|
extern float gistpenalty(GISTSTATE *giststate, int attno,
|
2006-10-04 02:30:14 +02:00
|
|
|
GISTENTRY *key1, bool isNull1,
|
|
|
|
GISTENTRY *key2, bool isNull2);
|
2006-06-28 14:00:14 +02:00
|
|
|
extern bool gistMakeUnionItVec(GISTSTATE *giststate, IndexTuple *itvec, int len, int startkey,
|
2006-10-04 02:30:14 +02:00
|
|
|
Datum *attr, bool *isnull);
|
2006-06-28 14:00:14 +02:00
|
|
|
extern bool gistKeyIsEQ(GISTSTATE *giststate, int attno, Datum a, Datum b);
|
|
|
|
extern void gistDeCompressAtt(GISTSTATE *giststate, Relation r, IndexTuple tuple, Page p,
|
2006-10-04 02:30:14 +02:00
|
|
|
OffsetNumber o, GISTENTRY *attdata, bool *isnull);
|
2006-06-28 14:00:14 +02:00
|
|
|
|
2006-10-04 02:30:14 +02:00
|
|
|
extern void gistMakeUnionKey(GISTSTATE *giststate, int attno,
|
|
|
|
GISTENTRY *entry1, bool isnull1,
|
|
|
|
GISTENTRY *entry2, bool isnull2,
|
|
|
|
Datum *dst, bool *dstisnull);
|
2005-06-20 12:29:37 +02:00
|
|
|
|
|
|
|
/* gistvacuum.c */
|
|
|
|
extern Datum gistbulkdelete(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum gistvacuumcleanup(PG_FUNCTION_ARGS);
|
2005-06-14 13:45:14 +02:00
|
|
|
|
2006-06-28 14:00:14 +02:00
|
|
|
/* gistsplit.c */
|
2006-10-04 02:30:14 +02:00
|
|
|
extern void gistSplitByKey(Relation r, Page page, IndexTuple *itup,
|
|
|
|
int len, GISTSTATE *giststate,
|
|
|
|
GistSplitVector *v, GistEntryVector *entryvec,
|
|
|
|
int attno);
|
2006-07-04 00:45:41 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
#endif /* GIST_PRIVATE_H */
|