Fix test instability

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: fcd72cf295c3f0d884b3bcd6bd4e401fc8a837a7
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2022-07-29T10:50:47Z
Releases: 11.17
Fix test instability

On FreeBSD, the new test fails due to a WAL file being removed before
the standby has had the chance to copy it.  Fix by adding a replication
slot to prevent the removal until after the standby has connected.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reported-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Discussion: https://postgr.es/m/CAEze2Wj5nau_qpjbwihvmXLfkAWOZ5TKdbnqOc6nKSiRJEoPyQ@mail.gmail.com

Files

PathChange+/−
src/test/recovery/t/033_replay_tsp_drops.pl modified +3 −1

Discussion