Re: standby promotion can create unreadable WAL - Mailing list pgsql-hackers

From Robert Haas
Subject Re: standby promotion can create unreadable WAL
Date
Msg-id CA+TgmoZODcwVtv-qKtFDzoT9KFVA8YWm5KzAEPLKDW0MiX-Kvw@mail.gmail.com
Whole thread Raw
In response to Re: standby promotion can create unreadable WAL  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Mon, Aug 22, 2022 at 10:38 PM Nathan Bossart
<nathandbossart@gmail.com> wrote:
> There was some previous discussion on this [0] [1].
>
> [0] https://postgr.es/m/2B4510B2-3D70-4990-BFE3-0FE64041C08A%40amazon.com
> [1] https://postgr.es/m/20220127.100738.1985658263632578184.horikyota.ntt%40gmail.com

Thanks. It seems like there are various doubts on those threads about
whether EndRecPtr is really the right thing, but I'm not able to
understand what the problem is exactly. Certainly, in the common case,
it is, and as far as I can tell from looking at the code, it's what
we're intended to use. So I would like to see some concrete evidence
of it being wrong before we conclude that we need to do anything other
than a trivial change.

But the main issue for this thread is that we seem to be generating
invalid WAL. That seems like something we'd better get fixed.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Schema variables - new implementation for Postgres 15
Next
From: Robert Haas
Date:
Subject: Re: Letter case of "admin option"