pgsql: Add more TAP tests with BASE_BACKUP and pg_backup_start/stop

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add more TAP tests with BASE_BACKUP and pg_backup_start/stop
Date: 2022-08-01 00:16:31
Message-ID: E1oIJ6k-0029SI-3A@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)paquier(dot)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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-08-01 01:00:48 pgsql: Append -X to direct invocation of psql in new test for BASE_BACK
Previous Message Tom Lane 2022-07-31 20:59:19 pgsql: Remove test_oat_hooks.c's nodetag_to_string().