Add test case for obsoleting slot with active walsender
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 18 Jun 2021 22:42:00 +0000 (18:42 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 18 Jun 2021 22:42:00 +0000 (18:42 -0400)
commit09126984a2631db8dd6299f23954e0dede69735f
treeb18d92e3284b1276b1c8adcd582cf44f4ed5298d
parentd21fca084356946664bfce19d66d2df2bb873cbd
Add test case for obsoleting slot with active walsender

The code to signal a running walsender when its reserved WAL size grows
too large is completely uncovered before this commit; this adds coverage
for that case.

This test involves sending SIGSTOP to walsender and walreceiver and
running a checkpoint while advancing WAL, then sending SIGCONT.  There's
no precedent for this coding in Perl tests, and my reading of relevant
manpages says it's likely to fail on Windows.  Because of this, this
test is always skipped on that platform.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/202106102202.mjw4huiix7lo@alvherre.pgsql
src/test/recovery/t/019_replslot_limit.pl