Re: Can there ever be out of sequence WAL files? - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Can there ever be out of sequence WAL files?
Date
Msg-id YeUXkpwwv+E25gRm@paquier.xyz
Whole thread Raw
In response to Re: Can there ever be out of sequence WAL files?  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-hackers
On Wed, Jan 12, 2022 at 12:23:00PM +0800, Julien Rouhaud wrote:
> On Wed, Jan 12, 2022 at 01:10:25PM +0900, Michael Paquier wrote:
>> xlog.c can be a good read to check the assumptions WAL replay relies
>> on, with things like CheckRecoveryConsistency() or
>> reachedConsistency.
>
> That should only stand for a WAL expected to be missing right?  For something
> unexpected it should fail in XLogReadRecord() when trying to fetch a missing
> block?

Sure, as well as there are sanity checks related to invalid page
references when it comes to the consistency checks.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_dump/restore --no-tableam
Next
From: Justin Pryzby
Date:
Subject: Re: Map WAL segment files on PMEM as WAL buffers