Re: BUG #7710: Xid epoch is not updated properly during checkpoint

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: BUG #7710: Xid epoch is not updated properly during checkpoint
Дата
Msg-id
14320.1354470251@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
BUG #7710: Xid epoch is not updated properly during checkpoint tarvip@gmail.com
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Andres Freund <andres@2ndquadrant.com>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Andres Freund <andres@anarazel.de>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Andres Freund <andres@2ndquadrant.com>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Simon Riggs <simon@2ndQuadrant.com>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Simon Riggs <simon@2ndQuadrant.com>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Simon Riggs <simon@2ndQuadrant.com>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Simon Riggs <simon@2ndQuadrant.com>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Simon Riggs <simon@2ndQuadrant.com>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #7710: Xid epoch is not updated properly during checkpoint Sergey Burladyan <eshkinkot@gmail.com>
Simon Riggs  writes:
> On 2 December 2012 16:44, Tom Lane  wrote:
>> 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.

> Exactly, the end result is identical, but the intermediate states may differ.

Indeed, and the intermediate states are *wrong*, as things stand.  But
they won't be visible to backends AFAICS, since we aren't allowing any
backends in yet.  I'm more concerned about the possible effects on tools
that scan WAL --- and in that connection, it's not apparent to me that
your "minimal fix" is any safer than the other change.  It's a
behavioral change either way.  I think correct tools shouldn't have a
problem either way, but it seems to me to be real hard to argue that
buggy tools would be affected by one change but not the other.  More
likely it could go either way depending on the nature of the bug.

			regards, tom lane
В списке pgsql-bugs по дате отправления
От: Simon Riggs
Дата:
От: Tom Lane
Дата:
FAQ