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

From Julien Rouhaud
Subject Re: Can there ever be out of sequence WAL files?
Date
Msg-id 20220112021811.5sthbk3rx4m5egvt@jrouhaud
Whole thread Raw
In response to Re: Can there ever be out of sequence WAL files?  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: Can there ever be out of sequence WAL files?
List pgsql-hackers
On Wed, Jan 12, 2022 at 07:19:48AM +0530, Bharath Rupireddy wrote:
> >
> > Can the postgres server ever have/generate out of sequence WAL files?
> > For instance, 000000010000020C000000A2, 000000010000020C000000A3,
> > 000000010000020C000000A5 and so on, missing 000000010000020C000000A4.
> > Manual/Accidental deletion of the WAL files can happes, but are there
> > any other extreme situations (like recycling, removing old WAL files
> > etc.) caused by the postgres server leading to missing WAL files?

By definition there shouldn't be such situation, as it would otherwise be a
(critical) bug.

> > What happens when postgres server finds missing WAL file during
> > crash/standby recovery?

The recovery should fail.



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: do only critical work during single-user vacuum?
Next
From: Amit Kapila
Date:
Subject: Re: Skipping logical replication transactions on subscriber side