pgsql: Add minimal tests for recovery conflict handling.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add minimal tests for recovery conflict handling.
Date: 2022-04-07 21:54:57
Message-ID: E1nca5h-000nN0-6f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Add minimal tests for recovery conflict handling.

Previously none of our tests triggered recovery conflicts. The test is
primarily motivated by needing tests for recovery conflict stats for shared
memory based pgstats. But it's also a decent start for recovery conflict
handling in general.

The only type of recovery conflict not tested yet are rcovery deadlock
conflicts.

By configuring log_recovery_conflict_waits the test adds some very minimal
testing for that path as well.

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/9f8a050f68dcb38fb0a1ea87e0e5d04df32b56f4

Modified Files
--------------
src/test/recovery/t/031_recovery_conflict.pl | 296 +++++++++++++++++++++++++++
1 file changed, 296 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-04-07 22:00:29 Re: pgsql: Rewrite some RI code to avoid using SPI
Previous Message Alvaro Herrera 2022-04-07 21:43:49 pgsql: Revert "Rewrite some RI code to avoid using SPI"

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-04-07 21:58:07 Re: Can we automatically add elapsed times to tap test log?
Previous Message Greg Stark 2022-04-07 21:53:43 Re: Last day of commitfest