Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ac697b

Browse files
committed
Remove erroneous restriction that -t cannot be used to select a
sequence for dumping.
1 parent16e4adc commit0ac697b

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/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 $
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 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.)
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)

[8]ページ先頭

©2009-2025 Movatter.jp