Add minimal tests for recovery conflict handling.
authorAndres Freund <[email protected]>
Thu, 7 Apr 2022 19:46:51 +0000 (12:46 -0700)
committerAndres Freund <[email protected]>
Thu, 7 Apr 2022 21:52:20 +0000 (14:52 -0700)
commit9f8a050f68dcb38fb0a1ea87e0e5d04df32b56f4
tree6c1610c33cb2fba6a5bfd364ccf32396abb6a077
parent53b9cd20d4144f5d65c107babe23916aad6c2ef8
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 <[email protected]>
Author: Andres Freund <[email protected]>
Discussion: https://postgr.es/m/20220303021600[email protected]
src/test/recovery/t/031_recovery_conflict.pl [new file with mode: 0644]