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 some checkpoint and redo LSNs to a couple of recovery errors
Date: Mon, 11 Mar 2024 00:22:13 +0000
Message-ID: <E1rjTQi-0038sX-RG@gemulon.postgresql.org> (raw)

Add some checkpoint and redo LSNs to a couple of recovery errors

Two FATALs and one PANIC gain details about the LSNs they fail at:
- When restoring from a backup_label, the FATAL log generated when not
finding the checkpoint record now reports its LSN.
- When restoring from a backup_label, the FATAL log generated when not
finding the redo record referenced by a checkpoint record now shows both
the redo and checkpoint record LSNs.
- When not restoring from a backup_label, the PANIC error generated when
not finding the checkpoint record now reports its LSN.

This information is useful when debugging corruption issues, and these
LSNs may not show up in the logs depending on the level of logging
configured in the backend.

Author: David Steele
Discussion: https://postgr.es/m/0e90da89-77ca-4ccf-872c-9626d755e288@pgmasters.net

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)



view thread (2+ messages)

Message-ID: <E1rjTQi-0038sX-RG@gemulon.postgresql.org>
Permalink:  ../E1rjTQi-0038sX-RG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rjTQi-0038sX-RG@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 some checkpoint and redo LSNs to a couple of recovery errors
  In-Reply-To: <E1rjTQi-0038sX-RG@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