skip the explain sql

This commit is contained in:
lishifu_db
2021-07-08 15:22:18 +08:00
parent 0236725f3f
commit 18d1cf3fa3

View File

@ -1711,7 +1711,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;
}