]> granicus.if.org Git - postgresql/commit
In tests, await an LSN no later than the recovery target.
authorNoah Misch <noah@leadboat.com>
Mon, 1 Jan 2018 05:58:29 +0000 (21:58 -0800)
committerNoah Misch <noah@leadboat.com>
Mon, 1 Jan 2018 05:58:29 +0000 (21:58 -0800)
commit6078770c1a6c247bb74742cb1b82733cce8afcab
tree0d27e013d798dff6dca92de418c5e8abb4759969
parent3e724aac74e8325fe48dac8a30c2a7974eff7a14
In tests, await an LSN no later than the recovery target.

Otherwise, the test fails with "Timed out while waiting for standby to
catch up".  This happened rarely, perhaps only when autovacuum wrote WAL
between our choosing the recovery target and choosing the LSN to await.
Commit b26f7fa6ae2b4e5d64525b3d5bc66a0ddccd9e24 fixed one case of this.
Fix two more.  Back-patch to 9.6, which introduced the affected test.

Discussion: https://postgr.es/m/20180101055227.GA2952815@rfd.leadboat.com
src/test/recovery/t/003_recovery_targets.pl