diff options
author | Andres Freund <andres@anarazel.de> | 2014-10-06 12:11:52 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2014-10-06 12:12:09 +0200 |
commit | 0cd700477466d260ed9c61d0af87df18f7cbfd1a (patch) | |
tree | 020539677e9756eaace311b29dda4489b785841f /src | |
parent | 6af3a67235ba6d31819bc7e4a2dae151721dc257 (diff) | |
download | postgresql-0cd700477466d260ed9c61d0af87df18f7cbfd1a.tar.gz postgresql-0cd700477466d260ed9c61d0af87df18f7cbfd1a.zip |
Rename pg_recvlogical's --create/--drop to --create-slot/--drop-slot.
A future patch (9.5 only) adds slot management to pg_receivexlog. The
verbs create/drop don't seem descriptive enough there. It seems better
to rename pg_recvlogical's commands now, in beta, than live with the
inconsistency forever.
The old form (e.g. --drop) will still be accepted by virtue of most
getopt_long() options accepting abbreviations for long commands.
Backpatch to 9.4 where pg_recvlogical was introduced.
Author: Michael Paquier and Andres Freund
Discussion: CAB7nPqQtt79U6FmhwvgqJmNyWcVCbbV-nS72j_jyPEopERg9rg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_recvlogical.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/pg_basebackup/pg_recvlogical.c b/src/bin/pg_basebackup/pg_recvlogical.c index 632b2cc983e..d3e0ee48fc2 100644 --- a/src/bin/pg_basebackup/pg_recvlogical.c +++ b/src/bin/pg_basebackup/pg_recvlogical.c @@ -91,9 +91,9 @@ usage(void) " time between status packets sent to server (default: %d)\n"), (standby_message_timeout / 1000)); printf(_(" -S, --slot=SLOT name of the logical replication slot\n")); printf(_("\nAction to be performed:\n")); - printf(_(" --create create a new replication slot (for the slot's name see --slot)\n")); + printf(_(" --create-slot create a new replication slot (for the slot's name see --slot)\n")); + printf(_(" --drop-slot drop the replication slot (for the slot's name see --slot)\n")); printf(_(" --start start streaming in a replication slot (for the slot's name see --slot)\n")); - printf(_(" --drop drop the replication slot (for the slot's name see --slot)\n")); printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n")); } @@ -619,9 +619,9 @@ main(int argc, char **argv) {"status-interval", required_argument, NULL, 's'}, {"slot", required_argument, NULL, 'S'}, /* action */ - {"create", no_argument, NULL, 1}, + {"create-slot", no_argument, NULL, 1}, {"start", no_argument, NULL, 2}, - {"drop", no_argument, NULL, 3}, + {"drop-slot", no_argument, NULL, 3}, {NULL, 0, NULL, 0} }; int c; @@ -814,7 +814,7 @@ main(int argc, char **argv) if (do_drop_slot && (do_create_slot || do_start_slot)) { - fprintf(stderr, _("%s: cannot use --create or --start together with --drop\n"), progname); + fprintf(stderr, _("%s: cannot use --create-slot or --start together with --drop-slot\n"), progname); fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname); exit(1); @@ -822,7 +822,7 @@ main(int argc, char **argv) if (startpos != InvalidXLogRecPtr && (do_create_slot || do_drop_slot)) { - fprintf(stderr, _("%s: cannot use --create or --drop together with --startpos\n"), progname); + fprintf(stderr, _("%s: cannot use --create-slot or --drop-slot together with --startpos\n"), progname); fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname); exit(1); |