mirror of https://github.com/citusdata/citus.git
Disable EXPLAIN EXECUTE under citus
parent
2dcca0939b
commit
97fa4d98ba
|
@ -181,6 +181,23 @@ multi_ProcessUtility(Node *parsetree,
|
|||
return;
|
||||
}
|
||||
|
||||
if (IsA(parsetree, ExplainStmt))
|
||||
{
|
||||
ExplainStmt *explainStmt = (ExplainStmt *) parsetree;
|
||||
|
||||
if (IsA(explainStmt->query, Query))
|
||||
{
|
||||
Query *query = (Query *) explainStmt->query;
|
||||
|
||||
if (query->commandType == CMD_UTILITY &&
|
||||
IsA(query->utilityStmt, ExecuteStmt))
|
||||
{
|
||||
/* Due to a postgres limitation these cause crashes. Skip them for now */
|
||||
ereport(ERROR, (errmsg("Citus does not support EXPLAIN EXECUTE")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (IsA(parsetree, CopyStmt))
|
||||
{
|
||||
parsetree = ProcessCopyStmt((CopyStmt *) parsetree, completionTag,
|
||||
|
|
Loading…
Reference in New Issue