]> granicus.if.org Git - postgresql/commitdiff
Split hash.h → hash_xlog.h
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 29 Aug 2016 21:48:02 +0000 (18:48 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 29 Aug 2016 21:55:49 +0000 (18:55 -0300)
Since the hash AM is going to be revamped to have WAL, this is a good
opportunity to clean up the include file a little bit to avoid including
a lot of extra stuff in the future.

Author: Amit Kapila

src/backend/access/hash/hash.c
src/backend/access/rmgrdesc/hashdesc.c
src/backend/access/transam/rmgr.c
src/bin/pg_xlogdump/rmgrdesc.c
src/include/access/hash.h
src/include/access/hash_xlog.h [new file with mode: 0644]

index 07496f815622480c0948389736dc055c6af4e993..e3b1eef246e5f6523936da1743f1ed7f7c765cac 100644 (file)
@@ -19,6 +19,7 @@
 #include "postgres.h"
 
 #include "access/hash.h"
+#include "access/hash_xlog.h"
 #include "access/relscan.h"
 #include "catalog/index.h"
 #include "commands/vacuum.h"
index d37c9b1aae3741a67f2c7ed4b51aa216a48e2a5a..12e1818fba608cc5b6f89bff10c09e54f6fec5e4 100644 (file)
@@ -14,7 +14,7 @@
  */
 #include "postgres.h"
 
-#include "access/hash.h"
+#include "access/hash_xlog.h"
 
 void
 hash_desc(StringInfo buf, XLogReaderState *record)
index 31c5fd165c0df07f53012eac39374a2f3ab5e4d3..9bb136218d579f01739dd562b356eb0e135bf8a2 100644 (file)
@@ -12,7 +12,7 @@
 #include "access/gin.h"
 #include "access/gist_private.h"
 #include "access/generic_xlog.h"
-#include "access/hash.h"
+#include "access/hash_xlog.h"
 #include "access/heapam_xlog.h"
 #include "access/brin_xlog.h"
 #include "access/multixact.h"
index 017b9c5b345d84605d71bee748d19b6990b0a684..8fe20ce97e0c71a9f53c0b0a5f1f62737e6459fd 100644 (file)
@@ -14,7 +14,7 @@
 #include "access/generic_xlog.h"
 #include "access/gin.h"
 #include "access/gist_private.h"
-#include "access/hash.h"
+#include "access/hash_xlog.h"
 #include "access/heapam_xlog.h"
 #include "access/multixact.h"
 #include "access/nbtree.h"
index ce314180e6b2fc187cbda3f9f13125d523bb0ac4..d9df90455512e436fcfcfb334c8b17e7a3fca54a 100644 (file)
@@ -20,7 +20,6 @@
 #include "access/amapi.h"
 #include "access/itup.h"
 #include "access/sdir.h"
-#include "access/xlogreader.h"
 #include "fmgr.h"
 #include "lib/stringinfo.h"
 #include "storage/bufmgr.h"
@@ -365,9 +364,4 @@ extern bool _hash_convert_tuple(Relation index,
 extern OffsetNumber _hash_binsearch(Page page, uint32 hash_value);
 extern OffsetNumber _hash_binsearch_last(Page page, uint32 hash_value);
 
-/* hash.c */
-extern void hash_redo(XLogReaderState *record);
-extern void hash_desc(StringInfo buf, XLogReaderState *record);
-extern const char *hash_identify(uint8 info);
-
 #endif   /* HASH_H */
diff --git a/src/include/access/hash_xlog.h b/src/include/access/hash_xlog.h
new file mode 100644 (file)
index 0000000..5f941a9
--- /dev/null
@@ -0,0 +1,25 @@
+/*-------------------------------------------------------------------------
+ *
+ * hash_xlog.h
+ *       header file for Postgres hash AM implementation
+ *
+ *
+ * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * src/include/access/hash_xlog.h
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef HASH_XLOG_H
+#define HASH_XLOG_H
+
+#include "access/hash.h"
+#include "access/xlogreader.h"
+
+
+extern void hash_redo(XLogReaderState *record);
+extern void hash_desc(StringInfo buf, XLogReaderState *record);
+extern const char *hash_identify(uint8 info);
+
+#endif   /* HASH_XLOG_H */