aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-09-27 22:10:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-09-27 22:10:01 +0000
commit0ac697b2699686cf062fb9dfa83f727b87e705a8 (patch)
tree78d3ad560e7e648542eceacd4d21fa959031a8aa /src
parent16e4adc38fc186945a67987ac1625b91e02b2b0d (diff)
downloadpostgresql-0ac697b2699686cf062fb9dfa83f727b87e705a8.tar.gz
postgresql-0ac697b2699686cf062fb9dfa83f727b87e705a8.zip
Remove erroneous restriction that -t cannot be used to select a
sequence for dumping.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_dump.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index df6c7a43d36..a2c5c388e54 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -12,7 +12,7 @@
* by PostgreSQL
*
* 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
- * that the specified table actually exists (and is a table or a view,
- * not a sequence).
+ * that the specified table actually exists. (This is a bit simplistic
+ * since we don't fully check the combination of -n and -t switches.)
*/
if (selectTableName)
{
for (i = 0; i < ntups; i++)
- if (strcmp(tblinfo[i].relname, selectTableName) == 0 &&
- tblinfo[i].relkind != 'S')
+ if (strcmp(tblinfo[i].relname, selectTableName) == 0)
break;
/* Didn't find a match */