#include "nodes/memnodes.h"
#include "nodes/execnodes.h"
+#include <stdio.h>
+#include "storage/ipc.h"
#include "storage/bufmgr.h"
#include "catalog/pg_index.h"
#include "nodes/parsenodes.h"
#include "tcop/dest.h"
#include "executor/execdesc.h"
-#include <stdio.h>
#include "executor/executor.h"
#include "access/heapam.h"
+#include "storage/spin.h"
+#include "utils/hsearch.h"
+#include "storage/shmem.h"
+#include "storage/lock.h"
+#include "storage/lmgr.h"
+
+#include "utils/palloc.h"
+
+#include "catalog/index.h"
+
+#include "access/genam.h"
+
+#include <string.h>
+#ifndef HAVE_MEMMOVE
+# include "regex/utils.h"
+#endif
+
+#include "access/gistscan.h"
+
+#include "fmgr.h"
+
/* non-export function prototypes */
static InsertIndexResult gistdoinsert(Relation r, IndexTuple itup,
GISTSTATE *GISTstate);
IndexTuple itup, /* itup contains compressed entry */
GISTSTATE *giststate)
{
- char *datum, *newdatum;
- GISTENTRY entry, tmpdentry;
+ GISTENTRY tmpdentry;
InsertIndexResult res;
OffsetNumber l;
- GISTSTACK *stack, *tmpstk;
+ GISTSTACK *stack;
Buffer buffer;
BlockNumber blk;
Page page;
Buffer b;
bool result;
bytea *evec;
- GISTENTRY centry, *ev0p, *ev1p, *dentryp;
+ GISTENTRY centry, *ev0p, *ev1p;
int size, datumsize;
IndexTuple tid;
bool *decompvec;
IndexTuple item_1;
GISTENTRY tmpdentry, tmpentry;
- char *datum;
isnull = (char *) palloc(r->rd_rel->relnatts);
for (blank = 0; blank < r->rd_rel->relnatts; blank++)
IndexTuple rtup, /* entry for new page */
GISTSTATE *giststate)
{
- IndexTuple old;
- Buffer b;
- Page p;
ItemPointerData ltid;
if (stk == (GISTSTACK *) NULL) {
Buffer b;
Page p;
InsertIndexResult res;
- OffsetNumber off;
- bytea *evec;
- char *datum;
- int size;
GISTENTRY tmpentry;
IndexTuple newtup;
Buffer b;
Page p;
InsertIndexResult res;
- bytea *evec;
- char *datum;
- int size;
OffsetNumber off;
GISTENTRY tmpentry;
IndexTuple newtup;
{
OffsetNumber maxoff;
OffsetNumber i;
- char *ud, *id;
+ char *id;
char *datum;
- float usize, dsize;
+ float usize;
OffsetNumber which;
float which_grow;
GISTENTRY entry, identry;
#include "access/gist.h"
+#include "executor/execdebug.h"
+
+#include "utils/palloc.h"
+
+#ifndef HAVE_MEMMOVE
+# include "regex/utils.h"
+#else
+# include <string.h>
+#endif
+
+#include <stdio.h>
+#include "storage/ipc.h"
+#include "storage/bufmgr.h"
+
static OffsetNumber gistfindnext(IndexScanDesc s, Page p, OffsetNumber n,
ScanDirection dir);
static RetrieveIndexResult gistscancache(IndexScanDesc s, ScanDirection dir);
char *it;
GISTPageOpaque po;
GISTScanOpaque so;
- GISTENTRY de;
GISTSTATE *giststate;
maxoff = PageGetMaxOffsetNumber(p);