mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Fix problems with incomplete attempt to prohibit OIDS with MVs.
Problem with assertion failure in restoring from pg_dump output reported by Joachim Wieland. Review and suggestions by Tom Lane and Robert Haas.
This commit is contained in:
@ -199,11 +199,14 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString)
|
||||
{
|
||||
cxt.stmtType = "CREATE FOREIGN TABLE";
|
||||
cxt.isforeign = true;
|
||||
cxt.hasoids = interpretOidsOption(stmt->options,
|
||||
RELKIND_FOREIGN_TABLE);
|
||||
}
|
||||
else
|
||||
{
|
||||
cxt.stmtType = "CREATE TABLE";
|
||||
cxt.isforeign = false;
|
||||
cxt.hasoids = interpretOidsOption(stmt->options, RELKIND_RELATION);
|
||||
}
|
||||
cxt.relation = stmt->relation;
|
||||
cxt.rel = NULL;
|
||||
@ -217,7 +220,6 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString)
|
||||
cxt.blist = NIL;
|
||||
cxt.alist = NIL;
|
||||
cxt.pkey = NULL;
|
||||
cxt.hasoids = interpretOidsOption(stmt->options);
|
||||
|
||||
Assert(!stmt->ofTypename || !stmt->inhRelations); /* grammar enforces */
|
||||
|
||||
|
Reference in New Issue
Block a user