Remove erroneous restriction that -t cannot be used to select a

sequence for dumping.
This commit is contained in:
Tom Lane 2003-09-27 22:10:01 +00:00
parent 16e4adc38f
commit 0ac697b269
1 changed files with 4 additions and 5 deletions

View File

@ -12,7 +12,7 @@
* by PostgreSQL * by PostgreSQL
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.351 2003/09/27 15:34:06 wieck Exp $ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.352 2003/09/27 22:10:01 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -2237,14 +2237,13 @@ getTables(int *numTables)
/* /*
* If the user is attempting to dump a specific table, check to ensure * If the user is attempting to dump a specific table, check to ensure
* that the specified table actually exists (and is a table or a view, * that the specified table actually exists. (This is a bit simplistic
* not a sequence). * since we don't fully check the combination of -n and -t switches.)
*/ */
if (selectTableName) if (selectTableName)
{ {
for (i = 0; i < ntups; i++) for (i = 0; i < ntups; i++)
if (strcmp(tblinfo[i].relname, selectTableName) == 0 && if (strcmp(tblinfo[i].relname, selectTableName) == 0)
tblinfo[i].relkind != 'S')
break; break;
/* Didn't find a match */ /* Didn't find a match */