Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7c77ba8

Browse files
committed
Expose -S option in pg_receivexlog.
This option is equivalent to --slot option which pg_receivexlog has already supported, which specifies the replication slot to use for WAL streaming. pg_recvlogical has already supported both options, and this commit makes pg_receivexlog consistent with pg_recvlogical regarding the slot option. Back-patch to 9.4 where the slot option was added. Michael Paquier
1 parent 876f1e6 commit 7c77ba8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/src/sgml/ref/pg_receivexlog.sgml

+1
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

+2-2
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)