Allow pg_dump -v display proper table/sequence count display.
authorBruce Momjian <bruce@momjian.us>
Wed, 26 May 1999 14:50:38 +0000 (14:50 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 26 May 1999 14:50:38 +0000 (14:50 +0000)
src/bin/pg_dump/pg_dump.c

index f71099ff454dd279d0e79a4431c592d2581ad09b..07768272768fcab99a8a776079a7c2046302a3a7 100644 (file)
@@ -426,11 +426,14 @@ dumpClasses(const TableInfo *tblinfo, const int numTables, FILE *fout,
        if (onlytable == NULL)
                all_only = "all";
        else
-               all_only = "one";
+               all_only = "only";
 
        if (g_verbose)
-               fprintf(stderr, "%s dumping out the contents of %s of %d tables %s\n",
-                               g_comment_start, all_only, numTables, g_comment_end);
+               fprintf(stderr, "%s dumping out the contents of %s %d table%s/sequence%s %s\n",
+                               g_comment_start, all_only,
+                               (onlytable == NULL) ? numTables : 1,
+                               (onlytable == NULL) ? "s" : "", (onlytable == NULL) ? "s" : "",
+                               g_comment_end);
 
        /* Dump SEQUENCEs first (if dataOnly) */
        if (dataOnly)