Fix getting the view address

onder_view
Burak Velioglu 2022-04-20 16:14:47 +03:00
parent 99876709cc
commit 81ea6c308c
1 changed files with 1 additions and 2 deletions

View File

@ -134,8 +134,7 @@ ViewStmtObjectAddress(Node *node, bool missing_ok)
{ {
ViewStmt *stmt = castNode(ViewStmt, node); ViewStmt *stmt = castNode(ViewStmt, node);
Oid schemaOid = RangeVarGetCreationNamespace(stmt->view); Oid viewOid = RangeVarGetRelid(stmt->view, NoLock, missing_ok);
Oid viewOid = get_relname_relid(stmt->view->relname, schemaOid);
ObjectAddress viewAddress = { 0 }; ObjectAddress viewAddress = { 0 };
ObjectAddressSet(viewAddress, RelationRelationId, viewOid); ObjectAddressSet(viewAddress, RelationRelationId, viewOid);