diff --git a/src/backend/distributed/commands/dependencies.c b/src/backend/distributed/commands/dependencies.c index 21d742c14..e30b3885c 100644 --- a/src/backend/distributed/commands/dependencies.c +++ b/src/backend/distributed/commands/dependencies.c @@ -138,6 +138,9 @@ EnsureDependenciesExistOnAllNodesInternal(const ObjectAddress *target, * before any node is in the cluster. If we would wait till we actually had connected * to the nodes before marking the objects as distributed these objects would never be * created on the workers when they get added, causing shards to fail to create. + * + * NOTE: We do this after creating the objects on the workers, otherwise + * MarkObjectDistributed would fail when localOnlyMarkdistributed is false. */ foreach_ptr(dependency, dependenciesWithCommands) {