aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2012-08-31 17:04:31 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2012-09-05 11:06:51 -0300
commite20a90e1887152f1e0c149a02c50d6bafb2596e5 (patch)
tree2de955d7fe196324719c2ccf6bc68cb143617bcb
parent358ff99d70a7e75d5a95d1d83676fcdd193c845d (diff)
downloadpostgresql-e20a90e1887152f1e0c149a02c50d6bafb2596e5.tar.gz
postgresql-e20a90e1887152f1e0c149a02c50d6bafb2596e5.zip
Trim spgist_private.h inclusion
It doesn't really need rel.h; relcache.h is enough.
-rw-r--r--src/backend/access/spgist/spgdoinsert.c1
-rw-r--r--src/backend/access/spgist/spginsert.c1
-rw-r--r--src/backend/access/spgist/spgscan.c1
-rw-r--r--src/include/access/spgist_private.h3
4 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/access/spgist/spgdoinsert.c b/src/backend/access/spgist/spgdoinsert.c
index 36d05703629..36e57ba0043 100644
--- a/src/backend/access/spgist/spgdoinsert.c
+++ b/src/backend/access/spgist/spgdoinsert.c
@@ -19,6 +19,7 @@
#include "access/spgist_private.h"
#include "miscadmin.h"
#include "storage/bufmgr.h"
+#include "utils/rel.h"
/*
diff --git a/src/backend/access/spgist/spginsert.c b/src/backend/access/spgist/spginsert.c
index d2893c6f3a9..0c2466c9621 100644
--- a/src/backend/access/spgist/spginsert.c
+++ b/src/backend/access/spgist/spginsert.c
@@ -24,6 +24,7 @@
#include "storage/bufmgr.h"
#include "storage/smgr.h"
#include "utils/memutils.h"
+#include "utils/rel.h"
typedef struct
diff --git a/src/backend/access/spgist/spgscan.c b/src/backend/access/spgist/spgscan.c
index 2a083b7c388..6c6f1b6084e 100644
--- a/src/backend/access/spgist/spgscan.c
+++ b/src/backend/access/spgist/spgscan.c
@@ -21,6 +21,7 @@
#include "storage/bufmgr.h"
#include "utils/datum.h"
#include "utils/memutils.h"
+#include "utils/rel.h"
typedef void (*storeRes_func) (SpGistScanOpaque so, ItemPointer heapPtr,
diff --git a/src/include/access/spgist_private.h b/src/include/access/spgist_private.h
index b5bc45121aa..edce9854c28 100644
--- a/src/include/access/spgist_private.h
+++ b/src/include/access/spgist_private.h
@@ -17,7 +17,8 @@
#include "access/itup.h"
#include "access/spgist.h"
#include "nodes/tidbitmap.h"
-#include "utils/rel.h"
+#include "storage/relfilenode.h"
+#include "utils/relcache.h"
/* Page numbers of fixed-location pages */