]> granicus.if.org Git - postgresql/commitdiff
Expose -S option in pg_receivexlog.
authorFujii Masao <fujii@postgresql.org>
Wed, 13 Aug 2014 01:45:28 +0000 (10:45 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 13 Aug 2014 01:45:28 +0000 (10:45 +0900)
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

doc/src/sgml/ref/pg_receivexlog.sgml
src/bin/pg_basebackup/pg_receivexlog.c

index 7c50b01a57b982a28136fca8fa853fa054c36e19..b792aa544025a1a473a436a361c06999a58d5bdf 100644 (file)
@@ -227,6 +227,7 @@ PostgreSQL documentation
      </varlistentry>
 
      <varlistentry>
+      <term><option>-S <replaceable>slotname</replaceable></option></term>
       <term><option>--slot=<replaceable class="parameter">slotname</replaceable></option></term>
       <listitem>
         <para>
index 96408389062cd3d3846d841a0d30bf709cf34cd7..ba635f2b86fbbfe0da11982032a9e88ef757a69d 100644 (file)
@@ -74,7 +74,7 @@ usage(void)
        printf(_("  -U, --username=NAME    connect as specified database user\n"));
        printf(_("  -w, --no-password      never prompt for password\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"));
 }
 
@@ -389,7 +389,7 @@ main(int argc, char **argv)
                }
        }
 
-       while ((c = getopt_long(argc, argv, "D:d:h:p:U:s:nwWv",
+       while ((c = getopt_long(argc, argv, "D:d:h:p:U:s:S:nwWv",
                                                        long_options, &option_index)) != -1)
        {
                switch (c)