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.
pull/270/head
Ibrar Ahmed 2022-06-22 11:53:42 +05:00 committed by GitHub
parent 2ba1960c2f
commit 15c73407c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 11 deletions

View File

@ -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);