|
12 | 12 | *by PostgreSQL |
13 | 13 | * |
14 | 14 | * IDENTIFICATION |
15 | | - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.351 2003/09/2715:34:06 wieck Exp $ |
| 15 | + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.352 2003/09/2722:10:01 tgl Exp $ |
16 | 16 | * |
17 | 17 | *------------------------------------------------------------------------- |
18 | 18 | */ |
@@ -2237,14 +2237,13 @@ getTables(int *numTables) |
2237 | 2237 |
|
2238 | 2238 | /* |
2239 | 2239 | * If the user is attempting to dump a specific table, check to ensure |
2240 | | - * that the specified table actually exists (and is atable or a view, |
2241 | | - *not a sequence). |
| 2240 | + * that the specified table actually exists. (This is abit simplistic |
| 2241 | + *since we don't fully check the combination of -n and -t switches.) |
2242 | 2242 | */ |
2243 | 2243 | if (selectTableName) |
2244 | 2244 | { |
2245 | 2245 | for (i=0;i<ntups;i++) |
2246 | | -if (strcmp(tblinfo[i].relname,selectTableName)==0&& |
2247 | | -tblinfo[i].relkind!='S') |
| 2246 | +if (strcmp(tblinfo[i].relname,selectTableName)==0) |
2248 | 2247 | break; |
2249 | 2248 |
|
2250 | 2249 | /* Didn't find a match */ |
|