mirror of https://github.com/citusdata/citus.git
Mark views as distributed
parent
b286a9aced
commit
774befda9c
|
@ -355,6 +355,10 @@ CreateDependentViewsOnWorkers(Oid relationId)
|
||||||
|
|
||||||
SendCommandToWorkersWithMetadata(createViewCommand);
|
SendCommandToWorkersWithMetadata(createViewCommand);
|
||||||
SendCommandToWorkersWithMetadata(alterViewOwnerCommand);
|
SendCommandToWorkersWithMetadata(alterViewOwnerCommand);
|
||||||
|
|
||||||
|
ObjectAddress viewAddress = { 0 };
|
||||||
|
ObjectAddressSet(viewAddress, RelationRelationId, viewOid);
|
||||||
|
MarkObjectDistributed(&viewAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
SendCommandToWorkersWithMetadata(ENABLE_DDL_PROPAGATION);
|
SendCommandToWorkersWithMetadata(ENABLE_DDL_PROPAGATION);
|
||||||
|
|
Loading…
Reference in New Issue