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

Commitdbf9528

Browse files
committed
Suppress database dump item when --table and/or --schema switch was
given, per gripe from Michael Fuhr.
1 parentbc9d4ec commitdbf9528

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.420 2005/09/05 23:50:48 tgl Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.421 2005/09/21 19:58:02 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -617,8 +617,8 @@ main(int argc, char **argv)
617617
/* First the special encoding entry. */
618618
dumpEncoding(g_fout);
619619

620-
/* The database item is always second. */
621-
if (!dataOnly)
620+
/* The database item is always second, unless we don't want it at all */
621+
if (!dataOnly&&selectTableName==NULL&&selectSchemaName==NULL)
622622
dumpDatabase(g_fout);
623623

624624
/* Now the rearrangeable objects. */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp