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

Commit53bd83b

Browse files
committed
fix temp replication slot for PG >= 11
1 parentd9cb01a commit53bd83b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/backup.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,6 +2772,14 @@ StreamLog(void *arg)
27722772
replication_slot="pg_probackup_slot";
27732773
#endif
27742774

2775+
2776+
#ifPG_VERSION_NUM >=110000
2777+
/* Create temp repslot */
2778+
if (temp_slot)
2779+
CreateReplicationSlot(stream_arg->conn,replication_slot,
2780+
NULL,temp_slot, true, true, false);
2781+
#endif
2782+
27752783
/*
27762784
* Start the replication
27772785
*/
@@ -2792,7 +2800,9 @@ StreamLog(void *arg)
27922800
ctl.walmethod=CreateWalDirectoryMethod(stream_arg->basedir,0, true);
27932801
ctl.replication_slot=replication_slot;
27942802
ctl.stop_socket=PGINVALID_SOCKET;
2803+
#ifPG_VERSION_NUM >=100000&&PG_VERSION_NUM<110000
27952804
ctl.temp_slot=temp_slot;
2805+
#endif
27962806
#else
27972807
ctl.basedir= (char*)stream_arg->basedir;
27982808
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp