diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-05-26 14:50:38 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-05-26 14:50:38 +0000 |
commit | eeadc5e87f31aae09c6924fc76dab4e1ebd96f4c (patch) | |
tree | 0535d204c2427db502a8ac3c7cd761447ee7746b | |
parent | 278bbf4572996e4097eac0c0d169dea1616ad0b6 (diff) | |
download | postgresql-eeadc5e87f31aae09c6924fc76dab4e1ebd96f4c.tar.gz postgresql-eeadc5e87f31aae09c6924fc76dab4e1ebd96f4c.zip |
Allow pg_dump -v display proper table/sequence count display.
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index dc9991c0998..33ecf7efd3c 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -21,7 +21,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.108 1999/05/25 16:13:06 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.109 1999/05/26 14:50:38 momjian Exp $ * * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * @@ -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) |