Skip to content

Commit eeadc5e

Browse files
committed
Allow pg_dump -v display proper table/sequence count display.
1 parent 278bbf4 commit eeadc5e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.108 1999/05/25 16:13:06 momjian Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.109 1999/05/26 14:50:38 momjian Exp $
2525
*
2626
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2727
*
@@ -426,11 +426,14 @@ dumpClasses(const TableInfo *tblinfo, const int numTables, FILE *fout,
426426
if (onlytable == NULL)
427427
all_only = "all";
428428
else
429-
all_only = "one";
429+
all_only = "only";
430430

431431
if (g_verbose)
432-
fprintf(stderr, "%s dumping out the contents of %s of %d tables %s\n",
433-
g_comment_start, all_only, numTables, g_comment_end);
432+
fprintf(stderr, "%s dumping out the contents of %s %d table%s/sequence%s %s\n",
433+
g_comment_start, all_only,
434+
(onlytable == NULL) ? numTables : 1,
435+
(onlytable == NULL) ? "s" : "", (onlytable == NULL) ? "s" : "",
436+
g_comment_end);
434437

435438
/* Dump SEQUENCEs first (if dataOnly) */
436439
if (dataOnly)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy