Make new replication slot test code even less racy

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

Commit: 0d2cb6b2bbc3327dd002f3ecd4d5bde5851b0cdc
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-07-19T21:21:07Z
Releases: 15.0
Make new replication slot test code even less racy

Further fix the test code in ead9e51e8236, this time by waiting until
the checkpoint has completed before moving on; this ensures that the
WAL segment removal has already happened when we create the next slot.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20210719.111318.2042379313472032754.horikyota.ntt@gmail.com

Files

PathChange+/−
src/test/recovery/t/019_replslot_limit.pl modified +14 −1

Discussion