pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alexander Korotkov <akorotkov@postgresql.org>
Cc: pgsql-hackers@lists.postgresql.org, Pg Committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Check for conflicting queries during replay of gistvacuumpage()
Date: Fri, 21 Dec 2018 13:16:38 -0300
Message-ID: <20181221161638.gf6gx3n62dfyvpyn@alvherre.pgsql> (raw)
In-Reply-To: <26516.1545408037@sss.pgh.pa.us>

On 2018-Dec-21, Tom Lane wrote:

> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > Hmmm, I'm fairly sure you should have bumped XLOG_PAGE_MAGIC for this
> > change.  Otherwise, what is going to happen to an unpatched standby (of
> > released versions) that receives the new WAL record from a patched
> > primary?
> 
> We can't change XLOG_PAGE_MAGIC in released branches, surely.
> 
> I think the correct thing is just for the release notes to warn people
> to upgrade standby servers first.

You're right.  My memory is playing tricks on me.  I recalled that we
had done it to prevent replay of WAL replay in nonpatched standbys in
some backpatched commit, but I can't find any evidence of this :-(
The commit message for 8e9a16ab8f7f (in 9.3 branch after it was
released) says:

    In replication scenarios using the 9.3 branch, standby servers must be
    upgraded before their master, so that they are prepared to deal with the
    new WAL record once the master is upgraded; failure to do so will cause
    WAL replay to die with a PANIC message.  Later upgrade of the standby
    will allow the process to continue where it left off, so there's no
    disruption of the data in the standby in any case.  Standbys know how to
    deal with the old WAL record, so it's okay to keep the master running
    the old code for a while.

Stupidly, I checked the 9.4 version of that commit (then the master
branch) and it does indeed contain the XLOG_PAGE_MAGIC change, but the
9.3 commit doesn't.

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




view thread (9+ messages)  latest in thread

Message-ID: <20181221161638.gf6gx3n62dfyvpyn@alvherre.pgsql>
Permalink:  ../20181221161638.gf6gx3n62dfyvpyn@alvherre.pgsql/
Also on:    postgresql.org/message-id/20181221161638.gf6gx3n62dfyvpyn@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-committers@postgresql.org
  Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, akorotkov@postgresql.org
  Subject: Re: pgsql: Check for conflicting queries during replay of gistvacuumpage()
  In-Reply-To: <20181221161638.gf6gx3n62dfyvpyn@alvherre.pgsql>
  References: <26516.1545408037@sss.pgh.pa.us> <20181221161638.gf6gx3n62dfyvpyn@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