From: Andres Freund <andres@2ndquadrant.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Jesse Denardo <denaje@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-bugs@postgresql.org
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] 9.3beta2: Failure to pg_upgrade
Date: Sat, 3 Aug 2013 04:44:57 +0200
Message-ID: <20130803024457.GA23266@alap2.anarazel.de> (raw)
In-Reply-To: <20130803022536.GX5669@eldon.alvh.no-ip.org>
References: <CANiVXAj4c88YqipsyFQPboqMudnjcNTdB3pqe8ReXqAFQ=HXyA@mail.gmail.com>
<20130731160307.GC3716@momjian.us>
<20130731165633.GW14652@eldon.alvh.no-ip.org>
<20130731170631.GG3716@momjian.us>
<CANiVXAiudBVJU9qCcXnhW9qpR+9g4it6UaU14qyvXB=pAH6bCQ@mail.gmail.com>
<20130731205532.GA14652@eldon.alvh.no-ip.org>
<20130802221743.GW5669@eldon.alvh.no-ip.org>
<20130803011409.GA27796@alap2.anarazel.de>
<20130803022536.GX5669@eldon.alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2013-08-02 22:25:36 -0400, Alvaro Herrera wrote:
> Andres Freund escribió:
> > On 2013-08-02 18:17:43 -0400, Alvaro Herrera wrote:
> > > Alvaro Herrera escribió:
> > >
> > > > As it turns out, I have a patched slru.c that adds a new function to
> > > > verify whether a page exists on disk. I created this for the commit
> > > > timestamp module, for the BDR branch, but I think it's what we need
> > > > here.
> > >
> > > Here's a patch that should fix the problem. Jesse, if you're able to
> > > test it, please give it a run and let me know if it works for you. I
> > > was able to upgrade an installation containing a problem that should
> > > reproduce yours.
> >
> > Wouldn't it be easier to make pg_upgrade fudge pg_control to have a safe
> > NextMultiXactId/Offset using pg_resetxlog?
>
> I don't understand. pg_upgrade already fudges pg_control to have a safe
> next multi, namely the same value used by the old cluster. The reason
> to preserve this value is that we must ensure no older value is
> consulted in pg_multixact: those might be present in tuples that were
> locked in the old cluster. (To be precise, this is the value to set as
> oldest multi, not next multi. But of course, the next multi must be
> greater than that one.)
I am suggesting to set them to a greater value than in the old cluster,
computed so it's guaranteed that they are proper page boundaries. Then
the situation described upthread shouldn't occur anymore, right?
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: andres@2ndquadrant.com, alvherre@2ndquadrant.com, denaje@gmail.com, bruce@momjian.us, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] 9.3beta2: Failure to pg_upgrade
In-Reply-To: <20130803024457.GA23266@alap2.anarazel.de>
References: <CANiVXAj4c88YqipsyFQPboqMudnjcNTdB3pqe8ReXqAFQ=HXyA@mail.gmail.com> <20130731160307.GC3716@momjian.us> <20130731165633.GW14652@eldon.alvh.no-ip.org> <20130731170631.GG3716@momjian.us> <CANiVXAiudBVJU9qCcXnhW9qpR+9g4it6UaU14qyvXB=pAH6bCQ@mail.gmail.com> <20130731205532.GA14652@eldon.alvh.no-ip.org> <20130802221743.GW5669@eldon.alvh.no-ip.org> <20130803011409.GA27796@alap2.anarazel.de> <20130803022536.GX5669@eldon.alvh.no-ip.org> <20130803024457.GA23266@alap2.anarazel.de>
* 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