SOmehow views shows up as subqueries with relationId set. Could have other places

pg16_kickoff
onderkalaci 2023-05-05 12:04:05 +03:00
parent 678c13ef17
commit 49a29e3371
1 changed files with 2 additions and 1 deletions

View File

@ -2223,7 +2223,8 @@ SelectsFromDistributedTable(List *rangeTableList, Query *query)
} }
if (rangeTableEntry->relkind == RELKIND_VIEW || if (rangeTableEntry->relkind == RELKIND_VIEW ||
rangeTableEntry->relkind == RELKIND_MATVIEW) rangeTableEntry->relkind == RELKIND_MATVIEW ||
rangeTableEntry->rtekind == RTE_SUBQUERY)
{ {
/* /*
* Skip over views, which would error out in GetCitusTableCacheEntry. * Skip over views, which would error out in GetCitusTableCacheEntry.