Skip to content

Commit c672d70

Browse files
committed
Fix description and documentation related to pg_restore --no-comments
These descriptions have been referring to object dump, but a restore operation is done. Reported-by: Andrey Lizenko Author: Andrey Lizenko Discussion: https://postgr.es/m/152992021588.1268.16786093506650391435@wrigleys.postgresql.org
1 parent d08c3d5 commit c672d70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/src/sgml/ref/pg_restore.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,8 @@
579579
<term><option>--no-comments</option></term>
580580
<listitem>
581581
<para>
582-
Do not dump comments.
582+
Do not output commands to restore comments, even if the archive
583+
contains them.
583584
</para>
584585
</listitem>
585586
</varlistentry>

src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ usage(const char *progname)
483483
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
484484
printf(_(" --enable-row-security enable row security\n"));
485485
printf(_(" --if-exists use IF EXISTS when dropping objects\n"));
486-
printf(_(" --no-comments do not dump comments\n"));
486+
printf(_(" --no-comments do not restore comments\n"));
487487
printf(_(" --no-data-for-failed-tables do not restore data of tables that could not be\n"
488488
" created\n"));
489489
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