mirror of https://github.com/citusdata/citus.git
SOmehow views shows up as subqueries with relationId set. Could have other places
parent
678c13ef17
commit
49a29e3371
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue