mirror of https://github.com/citusdata/citus.git
parent
7d57c7e1f9
commit
15541d1c45
|
@ -523,22 +523,17 @@ MarkExistingObjectDependenciesDistributedIfSupported()
|
||||||
resultingObjectAddresses = lappend(resultingObjectAddresses, addressPointer);
|
resultingObjectAddresses = lappend(resultingObjectAddresses, addressPointer);
|
||||||
|
|
||||||
List *viewList = GetDependingViews(citusTableId);
|
List *viewList = GetDependingViews(citusTableId);
|
||||||
elog(WARNING, "size: %d", list_length(viewList));
|
|
||||||
|
|
||||||
|
|
||||||
Oid viewOid = InvalidOid;
|
Oid viewOid = InvalidOid;
|
||||||
foreach_oid(viewOid, viewList)
|
foreach_oid(viewOid, viewList)
|
||||||
{
|
{
|
||||||
ObjectAddress viewAddress = { 0 };
|
ObjectAddress viewAddress = { 0 };
|
||||||
ObjectAddressSet(viewAddress, RelationRelationId, viewOid);
|
ObjectAddressSet(viewAddress, RelationRelationId, viewOid);
|
||||||
DeferredErrorMessage *msg = DeferErrorIfHasUnsupportedDependency(&viewAddress);
|
|
||||||
if (msg == NULL)
|
if (DeferErrorIfHasUnsupportedDependency(&viewAddress) == NULL)
|
||||||
{
|
{
|
||||||
/* as of Citus 11, tables that should be synced are also considered object */
|
/* as of Citus 11, tables that should be synced are also considered object */
|
||||||
resultingObjectAddresses = lappend(resultingObjectAddresses, addressPointer);
|
resultingObjectAddresses = lappend(resultingObjectAddresses, addressPointer);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
RaiseDeferredErrorInternal(msg, WARNING);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue