skip the explain sql

This commit is contained in:
lishifu_db 2021-07-08 15:30:49 +08:00
parent e55fe34bd1
commit 8908b5b686
1 changed files with 2 additions and 1 deletions

View File

@ -1666,7 +1666,8 @@ void GenerateUniqueSQLInfo(const char* sql, Query* query)
* refer to the assert in method "relation_open"
*/
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;
}