mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
PG-453: Normalize query does not work with INSERT statements. … (#268)
PG-453: Normalize query does not work with INSERT statements. The commit fixes the issue similar to pg_stat_statements. Jumble query skips in case of INSERT statements to avoid the duplicate queryid, but in another commit we already solved that problem with another way.
This commit is contained in:
@@ -2227,17 +2227,8 @@ JumbleQuery(JumbleState *jstate, Query *query)
|
||||
JumbleExpr(jstate, (Node *) query->cteList);
|
||||
|
||||
JumbleRangeTable(jstate, query->rtable, query->commandType);
|
||||
|
||||
/*
|
||||
* Skip jointree and targetlist in case of insert statment
|
||||
* to avoid queryid duplication problem.
|
||||
*/
|
||||
if (query->commandType != CMD_INSERT)
|
||||
{
|
||||
JumbleExpr(jstate, (Node *) query->jointree);
|
||||
JumbleExpr(jstate, (Node *) query->targetList);
|
||||
}
|
||||
|
||||
JumbleExpr(jstate, (Node *) query->jointree);
|
||||
JumbleExpr(jstate, (Node *) query->targetList);
|
||||
JumbleExpr(jstate, (Node *) query->onConflict);
|
||||
JumbleExpr(jstate, (Node *) query->returningList);
|
||||
JumbleExpr(jstate, (Node *) query->groupClause);
|
||||
|
||||
Reference in New Issue
Block a user