Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 5FB1D1B5234C for ; Wed, 23 May 2012 13:33:26 -0300 (ADT) Received: from moutng.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SXEV2-0006ll-Rk for pgsql-bugs@postgresql.org; Wed, 23 May 2012 16:33:26 +0000 Received: from alap2.localnet ([82.113.119.244]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0LdyNE-1Rhhjn0n88-00qUfh; Wed, 23 May 2012 18:33:11 +0200 From: Andres Freund Organization: 2ndQuadrant.com To: pgsql-bugs@postgresql.org Subject: Re: BUG #6661: out-of-order XID insertion in KnownAssignedXids Date: Wed, 23 May 2012 18:33:09 +0200 User-Agent: KMail/1.13.7 (Linux/3.4.0-rc6-andres-00076-gd60b9c1; KDE/4.7.4; x86_64; ; ) References: <201205231827.48351.andres@2ndquadrant.com> In-Reply-To: <201205231827.48351.andres@2ndquadrant.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201205231833.09260.andres@2ndquadrant.com> X-Provags-ID: V02:K0:D1LgX14+nMrVQnc7iZNe2WsRWAS1h3JwlcMHeK4o0TT 1LiXOnp8Yf0XtQlRQlufoiU+4SHmkwtyTLiQtvSkEce84bJuho mSDl0nr4cCNb4pfV7cbMnxOccImx4vx6iYvufn8bW1Injk+5xM bVK/BK8FuZgwrSvkaLoyPD/esZF7Iu5w/HEaLCWrSz1yYO81xZ QoZG5ukROw4ZGkOfeePmeAxwy5T+jO78G4Hqux5/ZC26V41rpp HuC9m/g8P2uUYTdNIH6y1FyYqO876n2EVlYCnZugIl2LWuqVUb n73B/E45WDEwtkeqE5SZ7p0WJhlL0rT/xmTmr6WR7SsuXf2+JI 1QdveDIqCatJOmv+sgSRp2+fsioqdV3AveML3GI1M X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201205/174 X-Sequence-Number: 33145 On Wednesday, May 23, 2012 06:27:48 PM Andres Freund wrote: > 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? Looking over the code again reachedConsistency doesn't imply STANDBY_SNAPSHOT_READY. Andres -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services