Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3a14575

Browse files
committed
Improve includes introduced in the replication origins patch.
pg_resetxlog.h contained two superfluous includes, origin.h superfluouslydepended on logical.h, and pg_xlogdump's rmgrdesc.h only indirectlyincluded origin.h.Backpatch: 9.5, where replication origins were introduced.
1 parente641d7b commit3a14575

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
staticControlFileDataControlFile;/* 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
#ifndefPG_ORIGIN_H
1111
#definePG_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
typedefstructxl_replorigin_set
1820
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp