pull/897/merge
Brian Cloutier 2017-06-08 15:44:17 +00:00 committed by GitHub
commit e5f3abfd96
1 changed files with 17 additions and 0 deletions

View File

@ -244,6 +244,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))
{
/* copy parse tree since we might scribble on it to fix the schema name */