2 Commits

Author SHA1 Message Date
Erik Nordström
db1fc4083d Fix flaky hypertable cache plan test
The `plan_hypertable_cache` test used `current_date` to generate data,
which is inherently flaky since it can create a different number of
chunks depending on which date you start at. When the number of chunks
differ, the test output changes too.
2020-05-11 09:51:58 +02:00
Sven Klemm
853e37efbf Fix hypertable detection in subqueries
When classify_relation is called for relations of subqueries it
would not be able to correctly classify the relation unless it
was already in cache. This patch changes classify_relation to
call get_hypertable without CACHE_FLAG_NOCREATE when the RangeTblEntry
has the inheritance flag set.
2020-05-07 18:21:07 +02:00