Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit256bfb2

Browse files
committed
doc: Improve pg_restore help output
Add a note that some options can be specified multiple times to selectmultiple objects to restore. This replaces the somewhat confusing useof plurals in the option descriptions themselves.
1 parentf41872d commit256bfb2

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 namedindexes\n"));
449+
printf(_(" -I, --index=NAME restore namedindex\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 inthese schemas\n"));
453+
printf(_(" -n, --schema=NAME restore only objects inthis schema\n"));
454454
printf(_(" -O, --no-owner skip restoration of object ownership\n"));
455-
printf(_(" -P, --function=NAME(args) restore namedfunctions\n"));
455+
printf(_(" -P, --function=NAME(args) restore namedfunction\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 namedtables\n"));
459-
printf(_(" -T, --trigger=NAME restore namedtriggers\n"));
458+
printf(_(" -t, --table=NAME restore namedtable\n"));
459+
printf(_(" -T, --trigger=NAME restore namedtrigger\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 namedsections (pre-data, data, or post-data)\n"));
468+
printf(_(" --section=SECTION restore namedsection (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)

[8]ページ先頭

©2009-2025 Movatter.jp