Add regression test for recovery pause.

Fujii Masao <fujii@postgresql.org>

Commit: 6bbc5c5e96b08f6b8c7d28d10ed8dfe6c49dca30
Author: Fujii Masao <fujii@postgresql.org>
Date: 2021-06-02T03:19:39Z
Releases: 14.0
Add regression test for recovery pause.

Previously there was no regression test for recovery pause feature.
This commit adds the test that checks

- recovery can be paused or resumed expectedly
- pg_get_wal_replay_pause_state() reports the correct pause state
- the paused state ends and promotion continues if a promotion
   is triggered while recovery is paused

Suggested-by: Michael Paquier
Author: Fujii Masao
Reviewed-by: Kyotaro Horiguchi, Dilip Kumar
Discussion: https://postgr.es/m/YKNirzqM1HYyk5h4@paquier.xyz

Files

PathChange+/−
src/test/recovery/t/005_replay_delay.pl modified +57 −2

Discussion