Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3a14575

Browse files
committed
Improve includes introduced in the replication origins patch.
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.
1 parent e641d7b commit 3a14575

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/bin/pg_resetxlog/pg_resetxlog.c

-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
#include "common/restricted_token.h"
5757
#include "storage/large_object.h"
5858
#include "pg_getopt.h"
59-
#include "replication/logical.h"
60-
#include "replication/origin.h"
6159

6260

6361
static ControlFileData ControlFile; /* pg_control values */

src/bin/pg_xlogdump/rmgrdesc.c

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "commands/dbcommands_xlog.h"
2626
#include "commands/sequence.h"
2727
#include "commands/tablespace.h"
28+
#include "replication/origin.h"
2829
#include "rmgrdesc.h"
2930
#include "storage/standby.h"
3031
#include "utils/relmapper.h"

src/include/replication/origin.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
#ifndef PG_ORIGIN_H
1111
#define PG_ORIGIN_H
1212

13+
#include "fmgr.h"
14+
#include "access/xlog.h"
1315
#include "access/xlogdefs.h"
16+
#include "access/xlogreader.h"
1417
#include "catalog/pg_replication_origin.h"
15-
#include "replication/logical.h"
1618

1719
typedef struct xl_replorigin_set
1820
{

0 commit comments

Comments
 (0)