pgsql: Add regression test for recovery pause.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add regression test for recovery pause.
Date: 2021-06-02 03:20:51
Message-ID: E1loHR5-0003G8-TJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6bbc5c5e96b08f6b8c7d28d10ed8dfe6c49dca30

Modified Files
--------------
src/test/recovery/t/005_replay_delay.pl | 59 +++++++++++++++++++++++++++++++--
1 file changed, 57 insertions(+), 2 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-06-02 14:44:22 pgsql: Teach tab-complete.c about recently-added CREATE TYPE options.
Previous Message Noah Misch 2021-06-02 01:08:20 pgsql: Fix missing gettimeofday() declaration.

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2021-06-02 03:22:04 Re: pg_get_wal_replay_pause_state() should not return 'paused' while a promotion is ongoing.
Previous Message Michael Paquier 2021-06-02 02:32:51 Re: Move pg_attribute.attcompression to earlier in struct for reduced size?