1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-16 17:07:43 +03:00

Fix bug in sequence dumping using new setval function

This commit is contained in:
Philip Warner
2000-10-13 00:43:31 +00:00
parent 8fb04f8f98
commit 1b1dbb861d
4 changed files with 26 additions and 9 deletions

View File

@@ -1483,12 +1483,16 @@ static int _tocEntryRequired(TocEntry* te, RestoreOptions *ropt)
}
}
/* Special Case: If 'SEQUENCE SET' and schemaOnly, then not needed */
if (ropt->schemaOnly && (strcmp(te->desc, "SEQUENCE SET") == 0) )
return 0;
/* Mask it if we only want schema */
if (ropt->schemaOnly)
res = res & 1;
/* Mask it we only want data */
if (ropt->dataOnly)
if (ropt->dataOnly && (strcmp(te->desc, "SEQUENCE SET") != 0) )
res = res & 2;
/* Mask it if we don't have a schema contribition */