pgsql: pgstat: add tests for handling of restarts, including crashes.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgstat: add tests for handling of restarts, including crashes.
Date: 2022-04-07 19:31:02
Message-ID: E1ncXqP-000mNo-UO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Author: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16acf7f1aaea6c5efc0fa49182c16cd6bfd9f3d3

Modified Files
--------------
src/test/recovery/t/029_stats_restart.pl | 307 +++++++++++++++++++++++++++++++
1 file changed, 307 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-04-07 20:32:07 Re: pgsql: Rewrite some RI code to avoid using SPI
Previous Message Alvaro Herrera 2022-04-07 19:11:01 pgsql: Rewrite some RI code to avoid using SPI