Re: 9.3beta2: Failure to pg_upgrade

From: Jesse Denardo <denaje(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-bugs(at)postgresql(dot)org, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 9.3beta2: Failure to pg_upgrade
Date: 2013-08-03 03:20:37
Message-ID: CANiVXAjVgYZUxcwkL00VsE6JoWSxo50TiCnRyR+Osnm8NR3VHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Alvaro,

I applied the patch and tried upgrading again, and everything seemed to
work as expected. We are now up and running the beta!

--
Jesse Denardo

On Fri, Aug 2, 2013 at 10:25 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>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.)
>
> --
> Álvaro Herrera http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2013-08-03 03:47:03 Re: 9.3beta2: Failure to pg_upgrade
Previous Message Andres Freund 2013-08-03 02:44:57 Re: [HACKERS] 9.3beta2: Failure to pg_upgrade

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2013-08-03 03:47:03 Re: 9.3beta2: Failure to pg_upgrade
Previous Message Satoshi Nagayasu 2013-08-03 03:12:26 Re: [9.4 CF 1]Commitfest ... over!