mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
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
This commit is contained in:
parent
596385be06
commit
52bffe3499
@ -242,6 +242,7 @@ PostgreSQL documentation
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
<term><option>-S <replaceable>slotname</replaceable></option></term>
|
||||||
<term><option>--slot=<replaceable class="parameter">slotname</replaceable></option></term>
|
<term><option>--slot=<replaceable class="parameter">slotname</replaceable></option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
|
@ -77,7 +77,7 @@ usage(void)
|
|||||||
printf(_(" -U, --username=NAME connect as specified database user\n"));
|
printf(_(" -U, --username=NAME connect as specified database user\n"));
|
||||||
printf(_(" -w, --no-password never prompt for password\n"));
|
printf(_(" -w, --no-password never prompt for password\n"));
|
||||||
printf(_(" -W, --password force password prompt (should happen automatically)\n"));
|
printf(_(" -W, --password force password prompt (should happen automatically)\n"));
|
||||||
printf(_(" --slot=SLOTNAME replication slot to use\n"));
|
printf(_(" -S, --slot=SLOTNAME replication slot to use\n"));
|
||||||
printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n"));
|
printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -394,7 +394,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((c = getopt_long(argc, argv, "D:d:h:p:U:s:nF:wWv",
|
while ((c = getopt_long(argc, argv, "D:d:h:p:U:s:S:nF:wWv",
|
||||||
long_options, &option_index)) != -1)
|
long_options, &option_index)) != -1)
|
||||||
{
|
{
|
||||||
switch (c)
|
switch (c)
|
||||||
|
Loading…
Reference in New Issue
Block a user