pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add more TAP tests with BASE_BACKUP and pg_backup_start/stop
Date: Mon, 01 Aug 2022 00:16:31 +0000
Message-ID: <E1oIJ6k-0029SI-3A@gemulon.postgresql.org> (raw)

Add more TAP tests with BASE_BACKUP and pg_backup_start/stop

This commit adds some test coverage for ee79647 (prevent BASE_BACKUP
from running in the middle of another base backup) and b24b2be
(BASE_BACKUP cancellation followed by pg_backup_start), caused by the
interactions of replication and SQL commands in a logical replication
connection in a WAL sender.

The second test uses a design close to what has been introduced in
0475a97f, where BASE_BACKUP is throttled to give enough room for a
cancellation, though this time we rely on psql with multiple -c
switches to keep a connection around for the second query.

Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/Ys/NCI4Eo9300GnQ@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ad341469b423cda4f0c3c3ed195ca6fa122b0609

Modified Files
--------------
src/test/recovery/t/001_stream_rep.pl | 55 +++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)



Message-ID: <E1oIJ6k-0029SI-3A@gemulon.postgresql.org>
Permalink:  ../E1oIJ6k-0029SI-3A@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oIJ6k-0029SI-3A@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: michael@paquier.xyz
  Subject: Re: pgsql: Add more TAP tests with BASE_BACKUP and pg_backup_start/stop
  In-Reply-To: <E1oIJ6k-0029SI-3A@gemulon.postgresql.org>
  References: <E1oIJ6k-0029SI-3A@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