Content-Length: 322513 | pFad | http://github.com/postgrespro/postgres/commit/3a145757a0cd19bfce770abeefa16af674e1bc09

BD Improve includes introduced in the replication origens patch. · postgrespro/postgres@3a14575 · GitHub
Skip to content

Commit 3a14575

Browse files
committed
Improve includes introduced in the replication origens patch.
pg_resetxlog.h contained two superfluous includes, origen.h superfluously depended on logical.h, and pg_xlogdump's rmgrdesc.h only indirectly included origen.h. Backpatch: 9.5, where replication origens 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/origen.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/origen.h"
2829
#include "rmgrdesc.h"
2930
#include "storage/standby.h"
3031
#include "utils/relmapper.h"

src/include/replication/origen.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_origen.h"
15-
#include "replication/logical.h"
1618

1719
typedef struct xl_replorigen_set
1820
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/3a145757a0cd19bfce770abeefa16af674e1bc09

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy