pgsql: Make new replication slot test code even less racy - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Make new replication slot test code even less racy
Date
Msg-id E1m5ahy-0003RC-Tl@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1e8751380836056fdf546433dcf0328bc18c9313

Modified Files
--------------
src/test/recovery/t/019_replslot_limit.pl | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove some whitespace in generated C output
Next
From: Thomas Munro
Date:
Subject: pgsql: Don't use #if inside function-like macro arguments.