summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2008-12-12 22:56:00 +0000
committerAlvaro Herrera2008-12-12 22:56:00 +0000
commit95e5024f2b08312e38855873cb237a08ac636dab (patch)
tree82be600b429ea5fbf952f83c70c2e8d4e0c7246b
parent6f9e294fc449fe22827e9a2287916cc7937d9c28 (diff)
Reduce some rel.h inclusions, and add pg_list.h to pg_proc_fn.h.
-rw-r--r--src/include/access/visibilitymap.h2
-rw-r--r--src/include/catalog/pg_proc_fn.h2
-rw-r--r--src/include/catalog/storage.h4
-rw-r--r--src/include/storage/freespace.h7
-rw-r--r--src/include/storage/indexfsm.h5
5 files changed, 13 insertions, 7 deletions
diff --git a/src/include/access/visibilitymap.h b/src/include/access/visibilitymap.h
index 82347aa942..94d46ef221 100644
--- a/src/include/access/visibilitymap.h
+++ b/src/include/access/visibilitymap.h
@@ -14,7 +14,7 @@
#ifndef VISIBILITYMAP_H
#define VISIBILITYMAP_H
-#include "utils/rel.h"
+#include "utils/relcache.h"
#include "storage/buf.h"
#include "storage/itemptr.h"
#include "access/xlogdefs.h"
diff --git a/src/include/catalog/pg_proc_fn.h b/src/include/catalog/pg_proc_fn.h
index e9726d4c9b..91d1e7ebcb 100644
--- a/src/include/catalog/pg_proc_fn.h
+++ b/src/include/catalog/pg_proc_fn.h
@@ -14,6 +14,8 @@
#ifndef PG_PROC_FN_H
#define PG_PROC_FN_H
+#include "nodes/pg_list.h"
+
extern Oid ProcedureCreate(const char *procedureName,
Oid procNamespace,
bool replace,
diff --git a/src/include/catalog/storage.h b/src/include/catalog/storage.h
index 8fc5f209e9..98d9c724ad 100644
--- a/src/include/catalog/storage.h
+++ b/src/include/catalog/storage.h
@@ -14,9 +14,11 @@
#ifndef STORAGE_H
#define STORAGE_H
+#include "access/xlog.h"
+#include "lib/stringinfo.h"
#include "storage/block.h"
#include "storage/relfilenode.h"
-#include "utils/rel.h"
+#include "utils/relcache.h"
extern void RelationCreateStorage(RelFileNode rnode, bool istemp);
extern void RelationDropStorage(Relation rel);
diff --git a/src/include/storage/freespace.h b/src/include/storage/freespace.h
index b76acd8f60..a4c86708d6 100644
--- a/src/include/storage/freespace.h
+++ b/src/include/storage/freespace.h
@@ -14,9 +14,10 @@
#ifndef FREESPACE_H_
#define FREESPACE_H_
-#include "utils/rel.h"
+#include "storage/block.h"
#include "storage/bufpage.h"
-#include "access/xlog.h"
+#include "storage/relfilenode.h"
+#include "utils/relcache.h"
/* prototypes for public functions in freespace.c */
extern Size GetRecordedFreeSpace(Relation rel, BlockNumber heapBlk);
@@ -33,4 +34,4 @@ extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
extern void FreeSpaceMapTruncateRel(Relation rel, BlockNumber nblocks);
extern void FreeSpaceMapVacuum(Relation rel);
-#endif /* FREESPACE_H */
+#endif /* FREESPACE_H_ */
diff --git a/src/include/storage/indexfsm.h b/src/include/storage/indexfsm.h
index c5c6170f31..326339359e 100644
--- a/src/include/storage/indexfsm.h
+++ b/src/include/storage/indexfsm.h
@@ -14,7 +14,8 @@
#ifndef INDEXFSM_H_
#define INDEXFSM_H_
-#include "utils/rel.h"
+#include "storage/block.h"
+#include "utils/relcache.h"
extern BlockNumber GetFreeIndexPage(Relation rel);
extern void RecordFreeIndexPage(Relation rel, BlockNumber page);
@@ -22,4 +23,4 @@ extern void RecordUsedIndexPage(Relation rel, BlockNumber page);
extern void IndexFreeSpaceMapVacuum(Relation rel);
-#endif /* INDEXFSM_H */
+#endif /* INDEXFSM_H_ */