Re: Use of backup_label not noted in log - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Use of backup_label not noted in log
Date
Msg-id ZbMCQWbjTyj1r0en@paquier.xyz
Whole thread Raw
In response to Re: Use of backup_label not noted in log  (David Steele <david@pgmasters.net>)
Responses Re: Use of backup_label not noted in log
List pgsql-hackers
On Thu, Jan 25, 2024 at 08:56:52AM -0400, David Steele wrote:
> I would still advocate for a back patch here. It is frustrating to get logs
> from users that just say:
>
> LOG:  invalid checkpoint record
> PANIC:  could not locate a valid checkpoint record
>
> It would be very helpful to know what the checkpoint record LSN was in this
> case.

Yes, I've pested over this one in the past when debugging corruption
issues.  To me, this would just mean to appens to the PANIC an "at
%X/%X", but perhaps you have more in mind for these code paths?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Yugo NAGATA
Date:
Subject: Rename setup_cancel_handler in pg_dump
Next
From: "Wei Wang (Fujitsu)"
Date:
Subject: RE: Fix inappropriate comments in function ReplicationSlotAcquire