|
12 | 12 | *by PostgreSQL
|
13 | 13 | *
|
14 | 14 | * 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 $ |
16 | 16 | *
|
17 | 17 | *-------------------------------------------------------------------------
|
18 | 18 | */
|
@@ -617,8 +617,8 @@ main(int argc, char **argv)
|
617 | 617 | /* First the special encoding entry. */
|
618 | 618 | dumpEncoding(g_fout);
|
619 | 619 |
|
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) |
622 | 622 | dumpDatabase(g_fout);
|
623 | 623 |
|
624 | 624 | /* Now the rearrangeable objects. */
|
|