|
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* IDENTIFICATION |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.117.2.2 2006/02/05 20:58:57 tgl Exp $ |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.117.2.3 2006/04/12 22:19:01 tgl Exp $ |
|
|
|
|
* |
|
|
|
|
*------------------------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
|
@ -1883,9 +1883,7 @@ _tocEntryRequired(TocEntry *te, RestoreOptions *ropt, bool include_acls) |
|
|
|
|
if (!ropt->create && strcmp(te->desc, "DATABASE") == 0) |
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
/* Check if tablename only is wanted */ |
|
|
|
|
if (ropt->selTypes) |
|
|
|
|
{ |
|
|
|
|
/* Check options for selective dump/restore */ |
|
|
|
|
if (ropt->schemaNames) |
|
|
|
|
{ |
|
|
|
|
/* If no namespace is specified, it means all. */ |
|
|
|
|
@ -1894,7 +1892,11 @@ _tocEntryRequired(TocEntry *te, RestoreOptions *ropt, bool include_acls) |
|
|
|
|
if (strcmp(ropt->schemaNames, te->namespace) != 0) |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
if ((strcmp(te->desc, "TABLE") == 0) || (strcmp(te->desc, "TABLE DATA") == 0)) |
|
|
|
|
|
|
|
|
|
if (ropt->selTypes) |
|
|
|
|
{ |
|
|
|
|
if (strcmp(te->desc, "TABLE") == 0 || |
|
|
|
|
strcmp(te->desc, "TABLE DATA") == 0) |
|
|
|
|
{ |
|
|
|
|
if (!ropt->selTable) |
|
|
|
|
return 0; |
|
|
|
|
|