Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix option related issues in pg_verifybackup.
authorFujii Masao <fujii@postgresql.org>
Thu, 23 Apr 2020 02:32:17 +0000 (11:32 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 23 Apr 2020 02:32:17 +0000 (11:32 +0900)
This commit does:

- get rid of the garbage code for unused --print-parse-wal option.
- add help message for --quiet option into usage().
- fix typo of option name in help message.

Author: Fujii Masao
Reviewed-by: Robert Haas
Discussion: https://postgr.es/m/ff4710f7-2331-4f6b-012e-d76da3275e91@oss.nttdata.com

src/bin/pg_verifybackup/pg_verifybackup.c

index 9c0a8c55507957573ca1c2c8db86583de86059b8..340765526daa6be6e806680b8c99005e5ee7ba1c 100644 (file)
@@ -162,7 +162,6 @@ main(int argc, char **argv)
        {"ignore", required_argument, NULL, 'i'},
        {"manifest-path", required_argument, NULL, 'm'},
        {"no-parse-wal", no_argument, NULL, 'n'},
-       {"print-parse-wal", no_argument, NULL, 'p'},
        {"quiet", no_argument, NULL, 'q'},
        {"skip-checksums", no_argument, NULL, 's'},
        {"wal-directory", required_argument, NULL, 'w'},
@@ -894,8 +893,9 @@ usage(void)
    printf(_("Options:\n"));
    printf(_("  -e, --exit-on-error         exit immediately on error\n"));
    printf(_("  -i, --ignore=RELATIVE_PATH  ignore indicated path\n"));
-   printf(_("  -m, --manifest=PATH         use specified path for manifest\n"));
+   printf(_("  -m, --manifest-path=PATH    use specified path for manifest\n"));
    printf(_("  -n, --no-parse-wal          do not try to parse WAL files\n"));
+   printf(_("  -q, --quiet                 do not print any output, except for errors\n"));
    printf(_("  -s, --skip-checksums        skip checksum verification\n"));
    printf(_("  -w, --wal-directory=PATH    use specified path for WAL files\n"));
    printf(_("  -V, --version               output version information, then exit\n"));