mirror of https://github.com/citusdata/citus.git
Add new RTE types to CitusRTEKind
PostgreSQL 10 adds two new RTEKind values and compilation will complain unless we handle them.pull/1439/head
parent
1d52af2492
commit
59a4fb596c
|
@ -294,6 +294,10 @@ GetRangeTblKind(RangeTblEntry *rte)
|
|||
switch (rte->rtekind)
|
||||
{
|
||||
/* directly rtekind if it's not possibly an extended RTE */
|
||||
#if (PG_VERSION_NUM >= 100000)
|
||||
case RTE_TABLEFUNC:
|
||||
case RTE_NAMEDTUPLESTORE:
|
||||
#endif
|
||||
case RTE_RELATION:
|
||||
case RTE_SUBQUERY:
|
||||
case RTE_JOIN:
|
||||
|
|
|
@ -55,8 +55,14 @@ typedef enum CitusRTEKind
|
|||
CITUS_RTE_SUBQUERY = RTE_SUBQUERY, /* subquery in FROM */
|
||||
CITUS_RTE_JOIN = RTE_JOIN, /* join */
|
||||
CITUS_RTE_FUNCTION = RTE_FUNCTION, /* function in FROM */
|
||||
#if (PG_VERSION_NUM >= 100000)
|
||||
CITUS_RTE_TABLEFUNC = RTE_TABLEFUNC, /* TableFunc(.., column list) */
|
||||
#endif
|
||||
CITUS_RTE_VALUES = RTE_VALUES, /* VALUES (<exprlist>), (<exprlist>), ... */
|
||||
CITUS_RTE_CTE = RTE_CTE, /* common table expr (WITH list element) */
|
||||
#if (PG_VERSION_NUM >= 100000)
|
||||
CITUS_RTE_NAMEDTUPLESTORE = RTE_NAMEDTUPLESTORE, /* tuplestore, e.g. for triggers */
|
||||
#endif
|
||||
CITUS_RTE_SHARD,
|
||||
CITUS_RTE_REMOTE_QUERY
|
||||
} CitusRTEKind;
|
||||
|
|
Loading…
Reference in New Issue