Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteeadc5e

Browse files
committed
Allow pg_dump -v display proper table/sequence count display.
1 parent278bbf4 commiteeadc5e

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)

[8]ページ先頭

©2009-2025 Movatter.jp