pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Ben Chobot <bench@silentmedia.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: 12.3 replicas falling over during WAL redo
Date: Tue, 4 Aug 2020 09:53:36 -0400
Message-ID: <20200804135336.GA23870@alvherre.pgsql> (raw)
In-Reply-To: <20200803235448.GA1736@alvherre.pgsql>

On 2020-Aug-03, Alvaro Herrera wrote:

> >      lsn      | checksum | flags | lower | upper | special | pagesize |
> > version | prune_xid
> > --------------+----------+-------+-------+-------+---------+----------+---------+-----------
> >  A0A/99BA11F8 |     -215 |     0 |   180 |  7240 |    8176 |     8192
> > |       4 |         0
> > 
> > As I understand what we're looking at, this means the WAL stream was
> > assuming this page was last touched by A0A/AB2C43D0, but the page itself
> > thinks it was last touched by A0A/99BA11F8, which means at least one write
> > to the page is missing?
> 
> Yeah, that's exactly what we're seeing.  Somehow an older page version
> was resurrected.  Of course, this should never happen.

... although, the block should have been in shared buffers, and it is
there that the previous WAL record would have updated -- not necessarily
flushed to disk.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (19+ messages)  latest in thread

Message-ID: <20200804135336.GA23870@alvherre.pgsql>
Permalink:  ../20200804135336.GA23870@alvherre.pgsql/
Also on:    postgresql.org/message-id/20200804135336.GA23870@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alvherre@2ndquadrant.com, bench@silentmedia.com
  Subject: Re: 12.3 replicas falling over during WAL redo
  In-Reply-To: <20200804135336.GA23870@alvherre.pgsql>
  References: <20200803235448.GA1736@alvherre.pgsql> <20200804135336.GA23870@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox