Improve includes introduced in the replication origins patch.
authorAndres Freund <andres@anarazel.de>
Thu, 6 Aug 2015 10:38:35 +0000 (12:38 +0200)
committerAndres Freund <andres@anarazel.de>
Thu, 6 Aug 2015 10:41:59 +0000 (12:41 +0200)
pg_resetxlog.h contained two superfluous includes, origin.h superfluously
depended on logical.h, and pg_xlogdump's rmgrdesc.h only indirectly
included origin.h.

Backpatch: 9.5, where replication origins were introduced.

src/bin/pg_resetxlog/pg_resetxlog.c
src/bin/pg_xlogdump/rmgrdesc.c
src/include/replication/origin.h

index e7e8059a38df16cee081597ede1e8da275eed739..72755b064d51bf17a5bc71a14ff2d6ad172decfa 100644 (file)
@@ -56,8 +56,6 @@
 #include "common/restricted_token.h"
 #include "storage/large_object.h"
 #include "pg_getopt.h"
-#include "replication/logical.h"
-#include "replication/origin.h"
 
 
 static ControlFileData ControlFile;        /* pg_control values */
index 2205d6e689634f320f8879e9dc731f89f0ef1067..5b88a8dd67a833858d128e702ce36637957b6755 100644 (file)
@@ -25,6 +25,7 @@
 #include "commands/dbcommands_xlog.h"
 #include "commands/sequence.h"
 #include "commands/tablespace.h"
+#include "replication/origin.h"
 #include "rmgrdesc.h"
 #include "storage/standby.h"
 #include "utils/relmapper.h"
index 5d294de60e43ef82089b66b692ac955d4bf63051..8cec43410f1c98d9a8215a8aae00da33893ab006 100644 (file)
 #ifndef PG_ORIGIN_H
 #define PG_ORIGIN_H
 
+#include "fmgr.h"
+#include "access/xlog.h"
 #include "access/xlogdefs.h"
+#include "access/xlogreader.h"
 #include "catalog/pg_replication_origin.h"
-#include "replication/logical.h"
 
 typedef struct xl_replorigin_set
 {