mirror of https://github.com/citusdata/citus.git
Fix getting the view address
parent
99876709cc
commit
81ea6c308c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue