Skip to content

Commit 0ac697b

Browse files
committed
Remove erroneous restriction that -t cannot be used to select a
sequence for dumping.
1 parent 16e4adc commit 0ac697b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.351 2003/09/27 15:34:06 wieck Exp $
15+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.352 2003/09/27 22:10:01 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -2237,14 +2237,13 @@ getTables(int *numTables)
22372237

22382238
/*
22392239
* If the user is attempting to dump a specific table, check to ensure
2240-
* that the specified table actually exists (and is a table or a view,
2241-
* not a sequence).
2240+
* that the specified table actually exists. (This is a bit simplistic
2241+
* since we don't fully check the combination of -n and -t switches.)
22422242
*/
22432243
if (selectTableName)
22442244
{
22452245
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)
22482247
break;
22492248

22502249
/* Didn't find a match */

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