Skip to content

Commit dbf9528

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

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)
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