pgstat: add tests for handling of restarts, including crashes.
authorAndres Freund <andres@anarazel.de>
Thu, 7 Apr 2022 19:07:50 +0000 (12:07 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 7 Apr 2022 19:28:02 +0000 (12:28 -0700)
commit16acf7f1aaea6c5efc0fa49182c16cd6bfd9f3d3
tree337bfb1a7eb9c8d273ab44a53df5cb4c4d1d704e
parent99392cdd78b788295e52b9f4942fa11992fd5ba9
pgstat: add tests for handling of restarts, including crashes.

Test that stats are restored during normal restarts, discarded after a crash /
immediate restart, and that a corrupted stats file leads to stats being reset.

Author: Melanie Plageman <melanieplageman@gmail.com>
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
src/test/recovery/t/029_stats_restart.pl [new file with mode: 0644]