pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add test case for obsoleting slot with active walsender
Date: Fri, 18 Jun 2021 22:50:03 +0000
Message-ID: <E1luNJL-0005Ku-Pc@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/09126984a2631db8dd6299f23954e0dede69735f

Modified Files
--------------
src/test/recovery/t/019_replslot_limit.pl | 85 +++++++++++++++++++++++++++++--
1 file changed, 82 insertions(+), 3 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1luNJL-0005Ku-Pc@gemulon.postgresql.org>
Permalink:  ../E1luNJL-0005Ku-Pc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1luNJL-0005Ku-Pc@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Add test case for obsoleting slot with active walsender
  In-Reply-To: <E1luNJL-0005Ku-Pc@gemulon.postgresql.org>
  References: <E1luNJL-0005Ku-Pc@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox