pgsql: Add recovery/startup test with backup_label and missing checkpoi

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add recovery/startup test with backup_label and missing checkpoi
Date: 2026-07-13 00:20:36
Message-ID: E1wj4PU-000owW-0V@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add recovery/startup test with backup_label and missing checkpoint segment

This test is able to trigger the following failure at the beginning of
recovery, that was not covered yet:
FATAL: could not locate required checkpoint record at %X/%X

Note that the backup used for the node created has its pg_wal/ removed,
which is why the segment expected is missing.

Extracted from a larger patch by the same author.

Author: Nitin Jadhav <nitinjadhavpostgres(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAMm1aWZ9Tv=Wrx52_2Ppw+6ULf_twRZuQm=ZWLA_a-kXWykHkQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2b8598a2b045b172a8f726ba130e9eb764dc0688

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

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2026-07-13 03:58:37 pgsql: Don't show tables redundantly when their schema is published.
Previous Message Tomas Vondra 2026-07-11 16:05:09 pgsql: Shorten pg_attribute_always_inline to pg_always_inline