Skip to content

Commit 52bffe3

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 596385b commit 52bffe3

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy