From: Andres Freund <andres@2ndquadrant.com>
To: pgsql-bugs@postgresql.org
Cc: Valentine Gogichashvili <valgog@gmail.com>
Subject: Re: BUG #6661: out-of-order XID insertion in KnownAssignedXids
Date: Wed, 23 May 2012 18:27:48 +0200
Message-ID: <201205231827.48351.andres@2ndquadrant.com> (raw)
In-Reply-To: <CAP93muXirKNS=TO+a9hP6g-A4irrc7oyx7v8x1yJT6CGx6Wy1w@mail.gmail.com>
References: <E1SWwkh-0000M9-Rj@wrigleys.postgresql.org>
<201205230849.59825.andres@anarazel.de>
<CAP93muXirKNS=TO+a9hP6g-A4irrc7oyx7v8x1yJT6CGx6Wy1w@mail.gmail.com>
On Wednesday, May 23, 2012 12:30:31 PM Valentine Gogichashvili wrote:
> > > CEST,,0,LOG,00000,"startup process (PID 23804) exited with exit code
> > > 1",,,,,,,,,""
> > > 2012-05-22 21:20:27.939 CEST,,,23793,,4fbbe69e.5cf1,2,,2012-05-22
> > > 21:18:54 CEST,,0,LOG,00000,"terminating any other active server
> > > processes",,,,,,,,,""
> > Could you provide a log with log_min_messages=DEBUG4? This will be quite
> > long though...
> Hm... I have the data directory, but not the WAL files any more. Forgot to
> back them up :(
Too bad, I think without more information we won't be able to fix this. I feel
bad for it but I actually you run into it again ;)
Here is what I found strange, should somebody ever come back to the issue:
- the standby was in a consistent state
- according to the error annotation we were processing a XLOG_RUNNING_XACTS
- ProcArrayApplyRecoveryInfo with STANDBY_SNAPSHOT_READY only does
ExpireOldKnownAssignedTransactionIds(running->oldestRunningXid);
StandbyReleaseOldLocks(running->xcnt, running->xids);
before short-circuiting. How comes we call KnownAssignedXidsAdd in that case?
Greetings,
Andres
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
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, valgog@gmail.com
Subject: Re: BUG #6661: out-of-order XID insertion in KnownAssignedXids
In-Reply-To: <201205231827.48351.andres@2ndquadrant.com>
References: <E1SWwkh-0000M9-Rj@wrigleys.postgresql.org> <201205230849.59825.andres@anarazel.de> <CAP93muXirKNS=TO+a9hP6g-A4irrc7oyx7v8x1yJT6CGx6Wy1w@mail.gmail.com> <201205231827.48351.andres@2ndquadrant.com>
* 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