Skip to content

Commit f722dd3

Browse files
committed
clarify --no-comments option in --help and SGML files
The previous commit, b38bac2, missed these cases for dump/restore. Reported-by: Tom Lane Discussion: https://postgr.es/m/3495698.1731968093@sss.pgh.pa.us Backpatch-through: master
1 parent 7074337 commit f722dd3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ exclude database <replaceable class="parameter">PATTERN</replaceable>
417417
<term><option>--no-comments</option></term>
418418
<listitem>
419419
<para>
420-
Do not dump comments.
420+
Do not dump <command>COMMENT</command> commands.
421421
</para>
422422
</listitem>
423423
</varlistentry>

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ help(const char *progname)
12121212
" servers matching PATTERN\n"));
12131213
printf(_(" --inserts dump data as INSERT commands, rather than COPY\n"));
12141214
printf(_(" --load-via-partition-root load partitions via the root table\n"));
1215-
printf(_(" --no-comments do not dump comments\n"));
1215+
printf(_(" --no-comments do not dump comment commands\n"));
12161216
printf(_(" --no-publications do not dump publications\n"));
12171217
printf(_(" --no-security-labels do not dump security label assignments\n"));
12181218
printf(_(" --no-subscriptions do not dump subscriptions\n"));

src/bin/pg_dump/pg_dumpall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ help(void)
662662
printf(_(" --if-exists use IF EXISTS when dropping objects\n"));
663663
printf(_(" --inserts dump data as INSERT commands, rather than COPY\n"));
664664
printf(_(" --load-via-partition-root load partitions via the root table\n"));
665-
printf(_(" --no-comments do not dump comments\n"));
665+
printf(_(" --no-comments do not dump comment commands\n"));
666666
printf(_(" --no-publications do not dump publications\n"));
667667
printf(_(" --no-role-passwords do not dump passwords for roles\n"));
668668
printf(_(" --no-security-labels do not dump security label assignments\n"));

src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ usage(const char *progname)
484484
printf(_(" --filter=FILENAME restore or skip objects based on expressions\n"
485485
" in FILENAME\n"));
486486
printf(_(" --if-exists use IF EXISTS when dropping objects\n"));
487-
printf(_(" --no-comments do not restore comments\n"));
487+
printf(_(" --no-comments do not restore comment commands\n"));
488488
printf(_(" --no-data-for-failed-tables do not restore data of tables that could not be\n"
489489
" created\n"));
490490
printf(_(" --no-publications do not restore publications\n"));

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