diff --git a/src/backend/distributed/commands/view.c b/src/backend/distributed/commands/view.c index 8297eb3a9..918e52769 100644 --- a/src/backend/distributed/commands/view.c +++ b/src/backend/distributed/commands/view.c @@ -133,6 +133,8 @@ PostprocessViewStmt(Node *node, const char *queryString) } } + EnsureSequentialMode(OBJECT_VIEW); + EnsureDependenciesExistOnAllNodes(&viewAddress); List *commands = list_make1(DISABLE_DDL_PROPAGATION); @@ -199,6 +201,9 @@ PreprocessDropViewStmt(Node *node, const char *queryString, ProcessUtilityContex EnsureCoordinator(); + + EnsureSequentialMode(OBJECT_VIEW); + /* * Swap the list of objects before deparsing and restore the old list after. This * ensures we only have distributed views in the deparsed drop statement.