]> granicus.if.org Git - postgresql/commitdiff
Fix description and documentation related to pg_restore --no-comments
authorMichael Paquier <michael@paquier.xyz>
Tue, 26 Jun 2018 05:57:53 +0000 (14:57 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 26 Jun 2018 05:57:53 +0000 (14:57 +0900)
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

doc/src/sgml/ref/pg_restore.sgml
src/bin/pg_dump/pg_restore.c

index 345324bd27deb581df0d412dfe2cbcb87a766a38..725acb192c999a6412db397ceddd8d75abb35c6c 100644 (file)
       <term><option>--no-comments</option></term>
       <listitem>
        <para>
-        Do not dump comments.
+        Do not output commands to restore comments, even if the archive
+        contains them.
        </para>
       </listitem>
      </varlistentry>
index 2342a6357121ae053fcb6e9715bd9ab9bd846675..501d7cea72b6b4a571c4cf936a1724b04b5e5c5a 100644 (file)
@@ -483,7 +483,7 @@ usage(const char *progname)
        printf(_("  --disable-triggers           disable triggers during data-only restore\n"));
        printf(_("  --enable-row-security        enable row security\n"));
        printf(_("  --if-exists                  use IF EXISTS when dropping objects\n"));
-       printf(_("  --no-comments                do not dump comments\n"));
+       printf(_("  --no-comments                do not restore comments\n"));
        printf(_("  --no-data-for-failed-tables  do not restore data of tables that could not be\n"
                         "                               created\n"));
        printf(_("  --no-publications            do not restore publications\n"));