pgstat: add/extend tests for resetting various kinds of stats.
Andres Freund <andres@anarazel.de>
pgstat: add/extend tests for resetting various kinds of stats. - subscriber stats reset path was untested - slot stat sreset path for all slots was untested - pg_stat_database.sessions etc was untested - pg_stat_reset_shared() was untested, for any kind of shared stats - pg_stat_reset() was untested Author: Melanie Plageman <melanieplageman@gmail.com> Author: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| contrib/test_decoding/expected/stats.out | modified | +87 −30 |
| contrib/test_decoding/sql/stats.sql | modified | +24 −8 |
| src/test/recovery/t/006_logical_decoding.pl | modified | +63 −0 |
| src/test/regress/expected/stats.out | modified | +164 −0 |
| src/test/regress/parallel_schedule | modified | +3 −0 |
| src/test/regress/sql/stats.sql | modified | +78 −0 |
| src/test/subscription/t/026_stats.pl | modified | +245 −73 |
Discussion
- shared-memory based stats collector 339 messages · 2018-06-29 → 2024-12-10