Add view as known-to-distribute object

onder_view
Burak Velioglu 2022-04-14 17:42:51 +03:00
parent d76f254904
commit b8f673ca91
No known key found for this signature in database
GPG Key ID: F6827E620F6549C6
1 changed files with 3 additions and 1 deletions

View File

@ -895,7 +895,9 @@ GetUndistributableDependency(const ObjectAddress *objectAddress)
{
char relKind = get_rel_relkind(dependency->objectId);
if (relKind == RELKIND_SEQUENCE || relKind == RELKIND_COMPOSITE_TYPE)
if (relKind == RELKIND_SEQUENCE ||
relKind == RELKIND_COMPOSITE_TYPE ||
relKind == RELKIND_VIEW)
{
/* citus knows how to auto-distribute these dependencies */
continue;