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

Commit7c77ba8

Browse files
committed
Expose -S option in pg_receivexlog.
This option is equivalent to --slot option which pg_receivexlog hasalready supported, which specifies the replication slot to use forWAL streaming. pg_recvlogical has already supported both options,and this commit makes pg_receivexlog consistent with pg_recvlogicalregarding the slot option.Back-patch to 9.4 where the slot option was added.Michael Paquier
1 parent876f1e6 commit7c77ba8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎doc/src/sgml/ref/pg_receivexlog.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ PostgreSQL documentation
227227
</varlistentry>
228228

229229
<varlistentry>
230+
<term><option>-S <replaceable>slotname</replaceable></option></term>
230231
<term><option>--slot=<replaceable class="parameter">slotname</replaceable></option></term>
231232
<listitem>
232233
<para>

‎src/bin/pg_basebackup/pg_receivexlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ usage(void)
7474
printf(_(" -U, --username=NAME connect as specified database user\n"));
7575
printf(_(" -w, --no-password never prompt for password\n"));
7676
printf(_(" -W, --password force password prompt (should happen automatically)\n"));
77-
printf(_(" --slot=SLOTNAME replication slot to use\n"));
77+
printf(_("-S, --slot=SLOTNAME replication slot to use\n"));
7878
printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n"));
7979
}
8080

@@ -389,7 +389,7 @@ main(int argc, char **argv)
389389
}
390390
}
391391

392-
while ((c=getopt_long(argc,argv,"D:d:h:p:U:s:nwWv",
392+
while ((c=getopt_long(argc,argv,"D:d:h:p:U:s:S:nwWv",
393393
long_options,&option_index))!=-1)
394394
{
395395
switch (c)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp