From: David Gould <daveg@sonic.net>
To: Peter Geoghegan <pg@heroku.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Subject: Re: Infinite loop in GetMultiXactIdMembers() on 9.3.5 (involves pg_upgrade)
Date: Wed, 28 Jan 2015 02:09:54 -0800
Message-ID: <20150128020954.67c90837@jekyl.lan> (raw)
In-Reply-To: <CAM3SWZToXjqCJ6bVdfV1zdyZfw+QPf2tmC-v-judLCVqwE76Hg@mail.gmail.com>
References: <CAM3SWZTvy0w99Pe=cxKM_tXK_mx9phmXvvgW5scLZ4r4x2NyYw@mail.gmail.com>
<CAM3SWZToXjqCJ6bVdfV1zdyZfw+QPf2tmC-v-judLCVqwE76Hg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Tue, 27 Jan 2015 19:56:43 -0800
Peter Geoghegan <pg@heroku.com> wrote:
> I've since found BUG #11264, which seems to be the same issue...don't
> know how I missed that one before. I see that Alvaro committed
> something that at least addresses the non-interruptibility issue
> directly, with a call to CHECK_FOR_INTERRUPTS() (commit d45e8dc52).
> But I don't see any follow up addressing the bug itself, which I'd
> hoped for. Did the discussion of BUG #11264 simply trail off without
> an adequate resolution, as it appeared to?
Sadly yes. I have hit the same problem and expect others will too. Alvaro
suggested updating datminmxid to the oldest relminmxid will prevent
this. I have written a script to do this, but not quite finished it as
I was unsure what to do with the cases where nextMultiXactId in
pg_controldata is < min(relminmxid) without looking at it more closely.
I have attached the script (work in progress) in hopes it is useful
or that someone can clarify how to calculate the correct datminmxid.
-dg
--
David Gould 510 282 0869 daveg@sonic.net
If simplicity worked, the world would be overrun with insects.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugsAttachments:
fix_minmxid.sh (application/x-shellscript, 2.6K) download
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: daveg@sonic.net, pg@heroku.com, alvherre@2ndquadrant.com
Subject: Re: Infinite loop in GetMultiXactIdMembers() on 9.3.5 (involves pg_upgrade)
In-Reply-To: <20150128020954.67c90837@jekyl.lan>
References: <CAM3SWZTvy0w99Pe=cxKM_tXK_mx9phmXvvgW5scLZ4r4x2NyYw@mail.gmail.com> <CAM3SWZToXjqCJ6bVdfV1zdyZfw+QPf2tmC-v-judLCVqwE76Hg@mail.gmail.com> <20150128020954.67c90837@jekyl.lan>
* 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