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 basic TAP tests for the low-level backup method
Date: Thu, 14 Mar 2024 01:57:17 +0000
Message-ID: <E1rkaLM-003gu9-Kq@gemulon.postgresql.org> (raw)

Add basic TAP tests for the low-level backup method

There are currently no tests for the low-level backup method where
pg_backup_start() and pg_backup_stop() are involved while taking a
file-system backup.  The tests introduced in this commit rely on a
background psql process to make sure that the backup is taken while the
session doing the SQL start and stop calls remains alive.

Two cases are checked here with the backup taken:
- Recovery without a backup_label, leading to a corrupted state.
- Recovery with a backup_label, with a consistent state reached.
Both cases cross-check some patterns in the logs generated when running
recovery.

Author: David Steele
Discussion: https://postgr.es/m/f20fcc82-dadb-478d-beb4-1e2ffb0ace76@pgmasters.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/99b4a63bef94b8e62a9a96c2446d1c16f95acd3b

Modified Files
--------------
src/test/recovery/t/042_low_level_backup.pl | 120 ++++++++++++++++++++++++++++
1 file changed, 120 insertions(+)



view thread (4+ messages)  latest in thread

Message-ID: <E1rkaLM-003gu9-Kq@gemulon.postgresql.org>
Permalink:  ../E1rkaLM-003gu9-Kq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rkaLM-003gu9-Kq@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add basic TAP tests for the low-level backup method
  In-Reply-To: <E1rkaLM-003gu9-Kq@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