forked from huawei/openGauss-server
!1074 skip the explain sql when recording in the unique sql view
Merge pull request !1074 from lishifu/2.0.0
This commit is contained in:
commit
8145a970b8
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue