index 49bf0907cd20f6309db4a5642382e5ad59f71b2a..d41a99d6ea7d9b71a6d7816e7ad64f8a17cf74c8 100644 (file)
int depIdx;
int depSize;
TocEntry *te;
+ bool is_supported;
AH->tocCount = ReadInt(AH);
AH->maxDumpId = 0;
te->tableam = ReadStr(AH);
te->owner = ReadStr(AH);
- if (AH->version < K_VERS_1_9 || strcmp(ReadStr(AH), "true") == 0)
+ is_supported = true;
+ if (AH->version < K_VERS_1_9)
+ is_supported = false;
+ else
+ {
+ tmp = ReadStr(AH);
+
+ if (strcmp(tmp, "true") == 0)
+ is_supported = false;
+
+ free(tmp);
+ }
+
+ if (!is_supported)
pg_log_warning("restoring tables WITH OIDS is not supported anymore");
/* Read TOC entry dependencies */