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

Commit52bffe3

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 parent596385b commit52bffe3

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
@@ -242,6 +242,7 @@ PostgreSQL documentation
242242
</varlistentry>
243243

244244
<varlistentry>
245+
<term><option>-S <replaceable>slotname</replaceable></option></term>
245246
<term><option>--slot=<replaceable class="parameter">slotname</replaceable></option></term>
246247
<listitem>
247248
<para>

‎src/bin/pg_basebackup/pg_receivexlog.c

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

@@ -394,7 +394,7 @@ main(int argc, char **argv)
394394
}
395395
}
396396

397-
while ((c=getopt_long(argc,argv,"D:d:h:p:U:s:nF:wWv",
397+
while ((c=getopt_long(argc,argv,"D:d:h:p:U:s:S:nF:wWv",
398398
long_options,&option_index))!=-1)
399399
{
400400
switch (c)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp