From da77bab9ad2cb3673176bac43fff19c2d94e6434 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 26 May 1999 14:50:38 +0000 Subject: [PATCH] Allow pg_dump -v display proper table/sequence count display. --- src/bin/pg_dump/pg_dump.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index f71099ff45..0776827276 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -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) -- 2.39.5