Skip to content

Commit 256bfb2

Browse files
committed
doc: Improve pg_restore help output
Add a note that some options can be specified multiple times to select multiple objects to restore. This replaces the somewhat confusing use of plurals in the option descriptions themselves.
1 parent f41872d commit 256bfb2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,17 +446,17 @@ usage(const char *progname)
446446
printf(_(" -c, --clean clean (drop) database objects before recreating\n"));
447447
printf(_(" -C, --create create the target database\n"));
448448
printf(_(" -e, --exit-on-error exit on error, default is to continue\n"));
449-
printf(_(" -I, --index=NAME restore named indexes\n"));
449+
printf(_(" -I, --index=NAME restore named index\n"));
450450
printf(_(" -j, --jobs=NUM use this many parallel jobs to restore\n"));
451451
printf(_(" -L, --use-list=FILENAME use table of contents from this file for\n"
452452
" selecting/ordering output\n"));
453-
printf(_(" -n, --schema=NAME restore only objects in these schemas\n"));
453+
printf(_(" -n, --schema=NAME restore only objects in this schema\n"));
454454
printf(_(" -O, --no-owner skip restoration of object ownership\n"));
455-
printf(_(" -P, --function=NAME(args) restore named functions\n"));
455+
printf(_(" -P, --function=NAME(args) restore named function\n"));
456456
printf(_(" -s, --schema-only restore only the schema, no data\n"));
457457
printf(_(" -S, --superuser=NAME superuser user name to use for disabling triggers\n"));
458-
printf(_(" -t, --table=NAME restore named tables\n"));
459-
printf(_(" -T, --trigger=NAME restore named triggers\n"));
458+
printf(_(" -t, --table=NAME restore named table\n"));
459+
printf(_(" -T, --trigger=NAME restore named trigger\n"));
460460
printf(_(" -x, --no-privileges skip restoration of access privileges (grant/revoke)\n"));
461461
printf(_(" -1, --single-transaction restore as a single transaction\n"));
462462
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
@@ -465,7 +465,7 @@ usage(const char *progname)
465465
" created\n"));
466466
printf(_(" --no-security-labels do not restore security labels\n"));
467467
printf(_(" --no-tablespaces do not restore tablespace assignments\n"));
468-
printf(_(" --section=SECTION restore named sections (pre-data, data, or post-data)\n"));
468+
printf(_(" --section=SECTION restore named section (pre-data, data, or post-data)\n"));
469469
printf(_(" --use-set-session-authorization\n"
470470
" use SET SESSION AUTHORIZATION commands instead of\n"
471471
" ALTER OWNER commands to set ownership\n"));
@@ -478,6 +478,9 @@ usage(const char *progname)
478478
printf(_(" -W, --password force password prompt (should happen automatically)\n"));
479479
printf(_(" --role=ROLENAME do SET ROLE before restore\n"));
480480

481+
printf(_("\n"
482+
"The options -I, -n, -P, -t, -T, and --section can be combined and specified\n"
483+
"multiple times to select multiple objects.\n"));
481484
printf(_("\nIf no input file name is supplied, then standard input is used.\n\n"));
482485
printf(_("Report bugs to <pgsql-bugs@postgresql.org>.\n"));
483486
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy