Re: Can there ever be out of sequence WAL files?

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Can there ever be out of sequence WAL files?
Date: 2022-01-12 02:18:11
Message-ID: 20220112021811.5sthbk3rx4m5egvt@jrouhaud
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2022-01-12 02:20:27 Re: do only critical work during single-user vacuum?
Previous Message Peter Geoghegan 2022-01-12 01:56:35 Re: do only critical work during single-user vacuum?