mirror of https://github.com/citusdata/citus.git
Router planner: bail on volatile functions in CTEs
parent
5c62f9935a
commit
db7fdb1854
|
@ -615,7 +615,16 @@ ModifyQuerySupported(Query *queryTree, Query *originalQuery, bool multiShardQuer
|
||||||
if (cteQuery->hasForUpdate)
|
if (cteQuery->hasForUpdate)
|
||||||
{
|
{
|
||||||
return DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
return DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
||||||
"Router planner doesn't support SELECT FOR UPDATE in common table expressions.",
|
"Router planner doesn't support SELECT FOR UPDATE"
|
||||||
|
" in common table expressions.",
|
||||||
|
NULL, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FindNodeCheck((Node *) cteQuery, CitusIsVolatileFunction))
|
||||||
|
{
|
||||||
|
return DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
||||||
|
"Router planner doesn't support VOLATILE functions"
|
||||||
|
" in common table expressions.",
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue