postgresql/contrib/pg_stat_statements/sql
Michael Paquier 9a714b9d6e Improve cleanup phases in regression tests of pg_stat_statements
As shaped, two DROP ROLE queries included in "user_activity" were
showing in the reports for "wal".  The intention is to keep each test
isolated and independent, so this is incorrect.  This commit adds some
calls to pg_stat_statements_reset() to clean up the statistics once each
test finishes, so as there are no risks of overlap in the reports for
individial scenarios.

The addition in "user_activity" fixes the output of "wal".  The new
resets done in "level_tracking" and "utility" are added for consistency
with the rest, though they do not affect the stats generated in the
other tests.

Oversight in d0028e3.

Reported-by: Andrei Zubkov
Discussion: https://postgr.es/m/7beb722dd016bf54f1c78bfd6d44a684e28da624.camel@moonset.ru
2023-03-07 08:58:13 +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 Improve cleanup phases in regression tests of pg_stat_statements 2023-03-07 08:58:13 +09:00
wal.sql Refactor more the regression tests of pg_stat_statements 2023-03-03 08:46:11 +09:00