postgresql/contrib/pg_stat_statements/sql
Michael Paquier bb45156f34 Show names of DEALLOCATE as constants in pg_stat_statements
This commit switches query jumbling so as prepared statement names are
treated as constants in DeallocateStmt.  A boolean field is added to
DeallocateStmt to make a distinction between ALL and named prepared
statements, as "name" was used to make this difference before, NULL
meaning DEALLOCATE ALL.

Prior to this commit, DEALLOCATE was not tracked in pg_stat_statements,
for the reason that it was not possible to treat its name parameter as a
constant.  Now that query jumbling applies to all the utility nodes,
this reason does not apply anymore.

Like 638d42a3c5, this can be a huge advantage for monitoring where
prepared statement names are randomly generated, preventing bloat in
pg_stat_statements.  A couple of tests are added to track the new
behavior.

Author: Dagfinn Ilmari Mannsåker, Michael Paquier
Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/ZMhT9kNtJJsHw6jK@paquier.xyz
2023-08-27 17:27:44 +09:00
..
cleanup.sql Refactor tests of pg_stat_statements for planning, utility and level tracking 2023-02-20 09:28:29 +09:00
cursors.sql Expand regression tests of pg_stat_statements for utility queries 2023-02-20 10:16:51 +09:00
dml.sql Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00
level_tracking.sql Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00
oldextversions.sql pg_stat_statements: Track I/O timing for temporary file blocks 2022-04-08 13:12:07 +09:00
planning.sql Refactor tests of pg_stat_statements for planning, utility and level tracking 2023-02-20 09:28:29 +09:00
select.sql Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00
user_activity.sql Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00
utility.sql Show names of DEALLOCATE as constants in pg_stat_statements 2023-08-27 17:27:44 +09:00
wal.sql Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00