#include "access/sdir.h"
#include "access/genam.h"
+#include "storage/ipc.h"
+#include "storage/spin.h"
+#include "utils/hsearch.h"
+#include "storage/shmem.h"
+#include "storage/lock.h"
+#include "storage/lmgr.h"
+
+#ifndef HAVE_MEMMOVE
+# include "regex/utils.h"
+#else
+# include <string.h>
+#endif
+
+#include "utils/palloc.h"
+
+#include "storage/block.h"
+#include "storage/off.h"
+#include "access/rtree.h"
+
+#include <stdio.h>
+#include "storage/bufmgr.h"
+
+#include "access/giststrat.h"
+
/* routines defined and used here */
static void gistregscan(IndexScanDesc s);
static void gistdropscan(IndexScanDesc s);
p = (GISTScanOpaque) s->opaque;
if (p != (GISTScanOpaque) NULL) {
- freestack(p->s_stack);
- freestack(p->s_markstk);
+ gistfreestack(p->s_stack);
+ gistfreestack(p->s_markstk);
p->s_stack = p->s_markstk = (GISTSTACK *) NULL;
p->s_flags = 0x0;
} else {
n = n->gs_parent;
}
- freestack(p->s_markstk);
+ gistfreestack(p->s_markstk);
p->s_markstk = o;
}
n = n->gs_parent;
}
- freestack(p->s_stack);
+ gistfreestack(p->s_stack);
p->s_stack = o;
}
p = (GISTScanOpaque) s->opaque;
if (p != (GISTScanOpaque) NULL) {
- freestack(p->s_stack);
- freestack(p->s_markstk);
+ gistfreestack(p->s_stack);
+ gistfreestack(p->s_markstk);
}
gistdropscan(s);