From 9a8aeb23a19ee6833480d4c12719d9fd26ad8571 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 2 Aug 1999 05:25:27 +0000 Subject: Another 'mega-commit' of back-patches ... - integrating the #include file cleanup that Bruce recently did - got the CPU change to adt/Makefile - changing DOUBLEALIGN -> MAXALIGN --- src/backend/access/gist/gist.c | 35 ++++++++++++++--------------------- src/backend/access/gist/gistget.c | 20 +++++--------------- src/backend/access/gist/gistscan.c | 21 ++++++--------------- src/backend/access/gist/giststrat.c | 6 +++--- 4 files changed, 28 insertions(+), 54 deletions(-) (limited to 'src/backend/access/gist') diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 06321990a8d..167f7e58721 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -6,31 +6,22 @@ * * * IDENTIFICATION - * + * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.38.2.1 1999/08/02 05:24:28 scrappy Exp $ * *------------------------------------------------------------------------- */ -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifndef HAVE_MEMMOVE -#include -#else -#include -#endif +#include "postgres.h" + +#include "access/genam.h" +#include "access/gist.h" +#include "access/gistscan.h" +#include "access/heapam.h" +#include "catalog/index.h" +#include "catalog/pg_index.h" +#include "executor/executor.h" +#include "utils/syscache.h" + /* non-export function prototypes */ static InsertIndexResult gistdoinsert(Relation r, IndexTuple itup, @@ -60,7 +51,9 @@ void gistdelete(Relation r, ItemPointer tid); static IndexTuple gist_tuple_replacekey(Relation r, GISTENTRY entry, IndexTuple t); static void gistcentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr, Relation r, Page pg, OffsetNumber o, int b, bool l); +#ifdef GISTDEBUG static char *int_range_out(INTRANGE *r); +#endif /* ** routine to build an index. Basically calls insert over and over diff --git a/src/backend/access/gist/gistget.c b/src/backend/access/gist/gistget.c index 665bc830357..fc18377a94a 100644 --- a/src/backend/access/gist/gistget.c +++ b/src/backend/access/gist/gistget.c @@ -11,21 +11,11 @@ *------------------------------------------------------------------------- */ -#include - -#include -#include -#include -#include -#include -#include -#include - -#ifndef HAVE_MEMMOVE -#include -#else -#include -#endif +#include "postgres.h" + +#include "access/gist.h" +#include "executor/execdebug.h" + static OffsetNumber gistfindnext(IndexScanDesc s, Page p, OffsetNumber n, diff --git a/src/backend/access/gist/gistscan.c b/src/backend/access/gist/gistscan.c index d26387d8280..e7a864985a4 100644 --- a/src/backend/access/gist/gistscan.c +++ b/src/backend/access/gist/gistscan.c @@ -10,21 +10,12 @@ *------------------------------------------------------------------------- */ -#include - -#include -#include -#include -#include -#include -#include -#include - -#ifndef HAVE_MEMMOVE -#include -#else -#include -#endif +#include "postgres.h" + +#include "access/genam.h" +#include "access/gist.h" +#include "access/gistscan.h" + /* routines defined and used here */ static void gistregscan(IndexScanDesc s); diff --git a/src/backend/access/gist/giststrat.c b/src/backend/access/gist/giststrat.c index 69eb9c31c3f..e1a5e497a7d 100644 --- a/src/backend/access/gist/giststrat.c +++ b/src/backend/access/gist/giststrat.c @@ -12,10 +12,10 @@ *------------------------------------------------------------------------- */ -#include +#include "postgres.h" -#include -#include +#include "access/gist.h" +#include "access/istrat.h" /* * Note: negate, commute, and negatecommute all assume that operators are -- cgit v1.2.3