Message style improvements
authorPeter Eisentraut
Fri, 14 May 2021 08:21:28 +0000 (10:21 +0200)
committerPeter Eisentraut
Fri, 14 May 2021 08:26:41 +0000 (10:26 +0200)
src/bin/pg_dump/pg_dump.c
src/bin/pg_rewind/pg_rewind.c
src/interfaces/ecpg/preproc/ecpg.trailer

index e384690d94ae2f9ae0deef03d93a14d22a792320..339c3937180f9cdcb9a89fcb7b6926ecc3974686 100644 (file)
@@ -1070,7 +1070,7 @@ help(const char *progname)
    printf(_("  --no-subscriptions           do not dump subscriptions\n"));
    printf(_("  --no-synchronized-snapshots  do not use synchronized snapshots in parallel jobs\n"));
    printf(_("  --no-tablespaces             do not dump tablespace assignments\n"));
-   printf(_("  --no-toast-compression       do not dump toast compression methods\n"));
+   printf(_("  --no-toast-compression       do not dump TOAST compression methods\n"));
    printf(_("  --no-unlogged-table-data     do not dump unlogged table data\n"));
    printf(_("  --on-conflict-do-nothing     add ON CONFLICT DO NOTHING to INSERT commands\n"));
    printf(_("  --quote-all-identifiers      quote all identifiers, even if not key words\n"));
@@ -16758,7 +16758,7 @@ dumpIndex(Archive *fout, const IndxInfo *indxinfo)
            if (!parsePGArray(indstatvals, &indstatvalsarray, &nstatvals))
                fatal("could not parse index statistic values");
            if (nstatcols != nstatvals)
-               fatal("mismatched number of columns and values for index stats");
+               fatal("mismatched number of columns and values for index statistics");
 
            for (j = 0; j < nstatcols; j++)
            {
index 5157f59cf79b38c118924f02762dc52b972793a8..2ac4910778b61f73837842ec0c8b09319094a2f3 100644 (file)
@@ -561,7 +561,7 @@ perform_rewind(filemap_t *filemap, rewind_source *source,
                break;
 
            case FILE_ACTION_UNDECIDED:
-               pg_fatal("no action decided for \"%s\"", entry->path);
+               pg_fatal("no action decided for file \"%s\"", entry->path);
                break;
        }
    }
index 3600d7c605434325a8e5b9c624356e9a1314c3d7..96c55349e822673014a4f51257b12c2cad63ca8a 100644 (file)
@@ -302,7 +302,7 @@ ECPGDeclareStmt: DECLARE prepared_name STATEMENT
                if (strcmp($2, ptr->name) == 0)
                {
                    /* re-definition is not allowed */
-                   mmerror(PARSE_ERROR, ET_ERROR, "declared name %s is already defined", ptr->name);
+                   mmerror(PARSE_ERROR, ET_ERROR, "name \"%s\" is already declared", ptr->name);
                }
            }