Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 03ABF1B5234C for ; Wed, 23 May 2012 13:28:05 -0300 (ADT) Received: from moutng.kundenserver.de ([212.227.17.10]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SXEPr-0006us-KP for pgsql-bugs@postgresql.org; Wed, 23 May 2012 16:28:04 +0000 Received: from alap2.localnet ([82.113.119.244]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lkioe-1Rx4mQ1P4m-00aR1D; Wed, 23 May 2012 18:27:50 +0200 From: Andres Freund To: pgsql-bugs@postgresql.org Subject: Re: BUG #6661: out-of-order XID insertion in KnownAssignedXids Date: Wed, 23 May 2012 18:27:48 +0200 User-Agent: KMail/1.13.7 (Linux/3.4.0-rc6-andres-00076-gd60b9c1; KDE/4.7.4; x86_64; ; ) Cc: Valentine Gogichashvili References: <201205230849.59825.andres@anarazel.de> In-Reply-To: Organization: 2ndQuadrant.com MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201205231827.48351.andres@2ndquadrant.com> X-Provags-ID: V02:K0:ehHdTTr1pT+YMY9RDUKY+NrZQCUFflPSGYJLAPk2U9/ zwPTOX2xuyH9qiyiJDkgxqt+lkP/uxuDupdTggL8VB5KS+sbg7 1zo2Rp5cgkGvxBZ3SQlacs/K1PKBInzZ36AoMz5yBjOZ6glR7O Pf0m/LGKbomrjg4Z0ygxpuRnrYUGYoAubZCJKH4AYZGbRtPOvF b96d0UKqQ1xb8hhLr1PZlsB5DfwZfMD+KutxNmEmtKPAAGMeXl MOUnKKMBTW/iaY4ZfoQ3B+Vh+qn+VEvxhOD4Gmx29YTFjdS8jg s0zlkCk5JV7KIR8kWnYlr46zMlSma6Z+ZwveLIzu3d8RqyEdLs 886Mj/vVT20H3e/bVHmzz60WGYLUGIDBVpdPCyzhch2DFLhf9k TGhimIeLykHWQ== X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201205/173 X-Sequence-Number: 33144 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