!1421 修复unique sql统计少的问题

Merge pull request !1421 from gentle_hu/dfx
This commit is contained in:
opengauss-bot
2022-01-05 01:53:41 +00:00
committed by Gitee

View File

@ -845,6 +845,13 @@ List* RevalidateCachedQuery(CachedPlanSource* plansource, bool has_lp)
snapshot_set = true;
}
/*
* Query Tree is about to be rebuilt, reset is_top_unique_sql, otherwise, unique sql id
* can not be set.
*/
if (IS_UNIQUE_SQL_TRACK_TOP)
SetIsTopUniqueSQL(false);
/*
* Run parse analysis and rule rewriting. The parser tends to scribble on
* its input, so we must copy the raw parse tree to prevent corruption of