mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-28 11:55:03 +03:00 
			
		
		
		
	Suppress database dump item when --table and/or --schema switch was
given, per gripe from Michael Fuhr.
This commit is contained in:
		| @@ -12,7 +12,7 @@ | |||||||
|  *	by PostgreSQL |  *	by PostgreSQL | ||||||
|  * |  * | ||||||
|  * IDENTIFICATION |  * IDENTIFICATION | ||||||
|  *	  $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.420 2005/09/05 23:50:48 tgl Exp $ |  *	  $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.421 2005/09/21 19:58:02 tgl Exp $ | ||||||
|  * |  * | ||||||
|  *------------------------------------------------------------------------- |  *------------------------------------------------------------------------- | ||||||
|  */ |  */ | ||||||
| @@ -617,8 +617,8 @@ main(int argc, char **argv) | |||||||
| 	/* First the special encoding entry. */ | 	/* First the special encoding entry. */ | ||||||
| 	dumpEncoding(g_fout); | 	dumpEncoding(g_fout); | ||||||
|  |  | ||||||
| 	/* The database item is always second. */ | 	/* The database item is always second, unless we don't want it at all */ | ||||||
| 	if (!dataOnly) | 	if (!dataOnly && selectTableName == NULL && selectSchemaName == NULL) | ||||||
| 		dumpDatabase(g_fout); | 		dumpDatabase(g_fout); | ||||||
|  |  | ||||||
| 	/* Now the rearrangeable objects. */ | 	/* Now the rearrangeable objects. */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user