onder_view
Onder Kalaci 2022-04-25 14:58:21 +02:00
parent ff003bccd8
commit 66ed5abfa4
1 changed files with 5 additions and 0 deletions

View File

@ -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.