Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TfCem-00024P-Rt for pgsql-bugs@arkaria.postgresql.org; Sun, 02 Dec 2012 16:44:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TfCel-0005w2-TE for pgsql-bugs@arkaria.postgresql.org; Sun, 02 Dec 2012 16:44:39 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TfCel-0005vw-17 for pgsql-bugs@postgresql.org; Sun, 02 Dec 2012 16:44:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TfCej-00089K-6K for pgsql-bugs@postgresql.org; Sun, 02 Dec 2012 16:44:38 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qB2GiXWT013207; Sun, 2 Dec 2012 11:44:33 -0500 (EST) From: Tom Lane To: Simon Riggs cc: tarvip@gmail.com, pgsql-bugs@postgresql.org, Andres Freund Subject: Re: BUG #7710: Xid epoch is not updated properly during checkpoint In-reply-to: References: <24367.1354402593@sss.pgh.pa.us> <11810.1354461920@sss.pgh.pa.us> Comments: In-reply-to Simon Riggs message dated "Sun, 02 Dec 2012 15:58:25 +0000" Date: Sun, 02 Dec 2012 11:44:32 -0500 Message-ID: <13206.1354466672@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Simon Riggs writes: > On 2 December 2012 15:25, Tom Lane wrote: >> This coding was ill-considered from the word go. > Agreed, but then I don't have a clear reason why it is that way and > yet I'm sure I did it for some reason. I think you just did it because it looked easy, and you didn't think very hard about the consequences. As far as the concern about new bugs is concerned: if we start replay from this checkpoint, we will certainly not consider that the DB is consistent until we reach the checkpoint's physical position. And by that point we'll have replayed the XLOG_RUNNING_XACTS record emitted by LogStandbySnapshot, so our idea of the nextXid should be fully up to date anyway. The same goes for checkpoints encountered later in the replay run --- they'd just be duplicative of the preceding XLOG_RUNNING_XACTS record. There is no reason to put the same XID into the checkpoint record. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs