!1073 skip the explain sql when recording in the unique sql view
Merge pull request !1073 from lishifu/master
This commit is contained in:
@ -1711,7 +1711,8 @@ void GenerateUniqueSQLInfo(const char* sql, Query* query)
|
|||||||
* refer to the assert in method "relation_open"
|
* refer to the assert in method "relation_open"
|
||||||
*/
|
*/
|
||||||
if (sql == NULL || query == NULL || g_instance.stat_cxt.UniqueSQLHashtbl == NULL || !is_local_unique_sql() ||
|
if (sql == NULL || query == NULL || g_instance.stat_cxt.UniqueSQLHashtbl == NULL || !is_local_unique_sql() ||
|
||||||
IsAbortedTransactionBlockState()) {
|
IsAbortedTransactionBlockState() ||
|
||||||
|
(query->utilityStmt != NULL && IsA(query->utilityStmt, ExplainStmt))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user