Re: Normalization of utility queries in pg_stat_statements
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-03-01T04:47:49Z
Lists: pgsql-hackers
Attachments
- v5-0001-Split-more-regression-tests-of-pg_stat_statements.patch (text/x-diff) patch v5-0001
- v5-0002-Apply-normalization-to-A_Const-and-utilities-in-p.patch (text/x-diff) patch v5-0002
- v5-0003-Remove-normalization-of-A_Const-nodes.patch (text/x-diff) patch v5-0003
On Mon, Feb 20, 2023 at 11:34:59AM +0900, Michael Paquier wrote: > With the patches.. Attached is an updated patch set, where I have done more refactoring work for the regression tests of pg_stat_statements, splitting pg_stat_statments.sql into the following files: - user_activity.sql for the role-level resets. - wal.sql for the WAL generation tracking. - dml.sql for insert/update/delete/merge and row counts. - The main file is renamed to select.sql, as it now only covers SELECT patterns. There is no change in the code coverage or the patterns tested. And with that, I am rather comfortable with the shape of the regression tests moving forward. 0002 and 0003 are equivalent to the previous 0003 and 0004 in v4, that switch pg_stat_statements to apply the normalization to utilities that use Const nodes. -- Michael
Commits
-
Reflect normalization of query strings for utilities in pg_stat_statements
- daa8365a9007 16.0 landed
-
Refine query jumbling handling for CallStmt
- a4e003338d18 16.0 landed
-
Ignore IntoClause.viewQuery in query jumbling
- d69cd3a2e29c 16.0 landed
-
Improve cleanup phases in regression tests of pg_stat_statements
- 9a714b9d6ec0 16.0 landed
-
Refactor more the regression tests of pg_stat_statements
- d0028e35a05a 16.0 landed
-
doc: Update pg_stat_statements about query ID calculation of utilities
- 6a88a058614b 16.0 landed
-
Expand regression tests of pg_stat_statements for utility queries
- de2aca288569 16.0 landed
-
Refactor tests of pg_stat_statements for planning, utility and level tracking
- e8dbdb15dbc8 16.0 landed