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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy