Add more TAP coverage for archive status with crash recovery of standbys
authorMichael Paquier <michael@paquier.xyz>
Mon, 27 Apr 2020 22:55:51 +0000 (07:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 27 Apr 2020 22:55:51 +0000 (07:55 +0900)
commitebf6de8692766177a36e7f5fb7545a52a0d5d881
tree252772d134e379a2830bdfda778811f8bdf93f96
parent0278d3f79a30cd9ccd6646b8447b25c60ae7d01d
Add more TAP coverage for archive status with crash recovery of standbys

This part of the test was included originally in 4e87c48, but got
reverted as of f9c1b8d because of timing issues in the test, where,
after more analysis, we found that the standbys may not have recovered
from the archives all the segments needed by the test.  This stabilizes
the test by making sure that standbys replay up to the position returned
by pg_switch_wal(), meaning that all segments are recovered before the
manual checkpoint that tests WAL segment recycling and its interactions
with archive status files.

Author: Jehan-Guillaume de Rorthais
Reviewed-by: Kyotaro Horiguchi, Michael Paquier
Discussion: https://postgr.es/m/20200424034248.GL33034@paquier.xyz
src/test/recovery/t/020_archive_status.pl