Add more tests for backend statistics This commit adds two sets of tests, providing more coverage for backend statistics: - Isolation tests, to provide checks for stats_fetch_consistency across multiple sessions, coupled with some transactions and/or mixed values of the GUC. - SQL tests for backend statistics with WAL data across resets, checking that backend stats resets do not impact the global stats counters.
These holes in the test coverage have been found by the author, while working on a different patch set that touches backend statistics. Author: Bertrand Drouvot <[email protected]> Reviewed-by: Andres Freund <[email protected]> Reviewed-by: Michael Paquier <[email protected]> Discussion: https://postgr.es/m/anCjoFkGah/uB7lw@bdtpg Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c7f5cf46c9e78819e51d419de48e9a37d3c4ee05 Modified Files -------------- src/test/isolation/expected/stats-backend.out | 225 ++++++++++++++++++++++++++ src/test/isolation/isolation_schedule | 1 + src/test/isolation/specs/stats-backend.spec | 120 ++++++++++++++ src/test/regress/expected/stats.out | 29 ++++ src/test/regress/sql/stats.sql | 10 ++ 5 files changed, 385 insertions(+)
