]> granicus.if.org Git - postgresql/commitdiff
Revert changes to pg_basebackup and pg_waldump usage() code.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 May 2017 17:04:03 +0000 (13:04 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 May 2017 17:04:03 +0000 (13:04 -0400)
Partially revert commit c079673dcb7f210617c9fc1470e6bf166d8a2971.
There were complaints that splitting switch descriptions would
complicate translation efforts.  There are probably ways to resolve
the formatting problem without doing that, but undo it while we're
discussing.

src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_waldump/pg_waldump.c

index 866f88a01702d76da766cd74b2ae0e6fa27f0716..a75d565843855c15a9103ac45c2fb64b7bd75ea1 100644 (file)
@@ -331,22 +331,22 @@ usage(void)
        printf(_("\nOptions controlling the output:\n"));
        printf(_("  -D, --pgdata=DIRECTORY receive base backup into directory\n"));
        printf(_("  -F, --format=p|t       output format (plain (default), tar)\n"));
-       printf(_("  -r, --max-rate=RATE    maximum transfer rate to transfer data directory\n"));
-       printf(_("                         (in kB/s, or use suffix \"k\" or \"M\")\n"));
-       printf(_("  -R, --write-recovery-conf\n"));
-       printf(_("                         write recovery.conf for replication\n"));
+       printf(_("  -r, --max-rate=RATE    maximum transfer rate to transfer data directory\n"
+         "                         (in kB/s, or use suffix \"k\" or \"M\")\n"));
+       printf(_("  -R, --write-recovery-conf\n"
+                        "                         write recovery.conf for replication\n"));
        printf(_("  -S, --slot=SLOTNAME    replication slot to use\n"));
        printf(_("      --no-slot          prevent creation of temporary replication slot\n"));
-       printf(_("  -T, --tablespace-mapping=OLDDIR=NEWDIR\n"));
-       printf(_("                         relocate tablespace in OLDDIR to NEWDIR\n"));
-       printf(_("  -X, --wal-method=none|fetch|stream\n"));
-       printf(_("                         include required WAL files with specified method\n"));
+       printf(_("  -T, --tablespace-mapping=OLDDIR=NEWDIR\n"
+         "                         relocate tablespace in OLDDIR to NEWDIR\n"));
+       printf(_("  -X, --wal-method=none|fetch|stream\n"
+                        "                         include required WAL files with specified method\n"));
        printf(_("      --waldir=WALDIR    location for the write-ahead log directory\n"));
        printf(_("  -z, --gzip             compress tar output\n"));
        printf(_("  -Z, --compress=0-9     compress tar output with given compression level\n"));
        printf(_("\nGeneral options:\n"));
-       printf(_("  -c, --checkpoint=fast|spread\n"));
-       printf(_("                         set fast or spread checkpointing\n"));
+       printf(_("  -c, --checkpoint=fast|spread\n"
+                        "                         set fast or spread checkpointing\n"));
        printf(_("  -l, --label=LABEL      set backup label\n"));
        printf(_("  -n, --no-clean         do not clean up after errors\n"));
        printf(_("  -N, --no-sync          do not wait for changes to be written safely to disk\n"));
@@ -358,8 +358,8 @@ usage(void)
        printf(_("  -d, --dbname=CONNSTR   connection string\n"));
        printf(_("  -h, --host=HOSTNAME    database server host or socket directory\n"));
        printf(_("  -p, --port=PORT        database server port number\n"));
-       printf(_("  -s, --status-interval=INTERVAL\n"));
-       printf(_("                         time between status packets sent to server (in seconds)\n"));
+       printf(_("  -s, --status-interval=INTERVAL\n"
+                        "                         time between status packets sent to server (in seconds)\n"));
        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"));
index 56843a5d509e3fd302a6d51ccd4a12cbd3802134..77b36f60e1428f8814c134b08df0473dcbb3879b 100644 (file)
@@ -689,18 +689,18 @@ usage(void)
        printf(_("  -e, --end=RECPTR       stop reading at WAL location RECPTR\n"));
        printf(_("  -f, --follow           keep retrying after reaching end of WAL\n"));
        printf(_("  -n, --limit=N          number of records to display\n"));
-       printf(_("  -p, --path=PATH        directory in which to find log segment files or a\n"));
-       printf(_("                         directory with a ./pg_wal that contains such files\n"));
-       printf(_("                         (default: current directory, ./pg_wal, PGDATA/pg_wal)\n"));
-       printf(_("  -r, --rmgr=RMGR        only show records generated by resource manager RMGR\n"));
-       printf(_("                         use --rmgr=list to list valid resource manager names\n"));
+       printf(_("  -p, --path=PATH        directory in which to find log segment files or a\n"
+                        "                         directory with a ./pg_wal that contains such files\n"
+                        "                         (default: current directory, ./pg_wal, PGDATA/pg_wal)\n"));
+       printf(_("  -r, --rmgr=RMGR        only show records generated by resource manager RMGR\n"
+                        "                         use --rmgr=list to list valid resource manager names\n"));
        printf(_("  -s, --start=RECPTR     start reading at WAL location RECPTR\n"));
-       printf(_("  -t, --timeline=TLI     timeline from which to read log records\n"));
-       printf(_("                         (default: 1 or the value used in STARTSEG)\n"));
+       printf(_("  -t, --timeline=TLI     timeline from which to read log records\n"
+                        "                         (default: 1 or the value used in STARTSEG)\n"));
        printf(_("  -V, --version          output version information, then exit\n"));
        printf(_("  -x, --xid=XID          only show records with TransactionId XID\n"));
-       printf(_("  -z, --stats[=record]   show statistics instead of records\n"));
-       printf(_("                         (optionally, show per-record statistics)\n"));
+       printf(_("  -z, --stats[=record]   show statistics instead of records\n"
+                        "                         (optionally, show per-record statistics)\n"));
        printf(_("  -?, --help             show this help, then exit\n"));
 }