pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: tarvip@gmail.com
Cc: pgsql-bugs@postgresql.org
Cc: Andres Freund <andres@2ndQuadrant.com>
Subject: Re: BUG #7710: Xid epoch is not updated properly during checkpoint
Date: Sun, 02 Dec 2012 11:44:32 -0500
Message-ID: <13206.1354466672@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+U5nMJ7mUqRoUwHEKu1r6Nzz0CUduKe30rDTYV++U--vAG7hw@mail.gmail.com>
References: <E1TdRCT-00008s-Tc@wrigleys.postgresql.org>
	<24367.1354402593@sss.pgh.pa.us>
	<CA+U5nM+qw3b74FrkY7z2bK73Q6svtCHLiGb3ZrHwXwLRp_nuDQ@mail.gmail.com>
	<CA+U5nM+q5nwzCyRa-n_vzFNLLPep1W+vtAt1ysWKTe0-hMscpw@mail.gmail.com>
	<11810.1354461920@sss.pgh.pa.us>
	<CA+U5nMJ7mUqRoUwHEKu1r6Nzz0CUduKe30rDTYV++U--vAG7hw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Simon Riggs <simon@2ndQuadrant.com> writes:
> On 2 December 2012 15:25, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (14+ messages)  latest in thread

Message-ID: <13206.1354466672@sss.pgh.pa.us>
Permalink:  ../13206.1354466672@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13206.1354466672@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, simon@2ndQuadrant.com, tarvip@gmail.com, andres@2ndQuadrant.com
  Subject: Re: BUG #7710: Xid epoch is not updated properly during checkpoint
  In-Reply-To: <13206.1354466672@sss.pgh.pa.us>
  References: <E1TdRCT-00008s-Tc@wrigleys.postgresql.org> <24367.1354402593@sss.pgh.pa.us> <CA+U5nM+qw3b74FrkY7z2bK73Q6svtCHLiGb3ZrHwXwLRp_nuDQ@mail.gmail.com> <CA+U5nM+q5nwzCyRa-n_vzFNLLPep1W+vtAt1ysWKTe0-hMscpw@mail.gmail.com> <11810.1354461920@sss.pgh.pa.us> <CA+U5nMJ7mUqRoUwHEKu1r6Nzz0CUduKe30rDTYV++U--vAG7hw@mail.gmail.com> <13206.1354466672@sss.pgh.pa.us>

* 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