Re: Avoiding adjacent checkpoint records

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: Avoiding adjacent checkpoint records
Дата
Msg-id
20120613025542.GA15198@momjian.us
Ответ на
Список
Дерево обсуждения
Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Robert Haas <robertmhaas@gmail.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Robert Haas <robertmhaas@gmail.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Bruce Momjian <bruce@momjian.us>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Robert Haas <robertmhaas@gmail.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Simon Riggs <simon@2ndQuadrant.com>
Re: Avoiding adjacent checkpoint records "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Avoiding adjacent checkpoint records Simon Riggs <simon@2ndQuadrant.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Simon Riggs <simon@2ndQuadrant.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Robert Haas <robertmhaas@gmail.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Simon Riggs <simon@2ndQuadrant.com>
Re: Avoiding adjacent checkpoint records Robert Haas <robertmhaas@gmail.com>
Re: Avoiding adjacent checkpoint records "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Avoiding adjacent checkpoint records Robert Haas <robertmhaas@gmail.com>
Re: Avoiding adjacent checkpoint records Peter Geoghegan <peter@2ndquadrant.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
Re: Avoiding adjacent checkpoint records Simon Riggs <simon@2ndQuadrant.com>
Re: Avoiding adjacent checkpoint records Tom Lane <tgl@sss.pgh.pa.us>
On Wed, Jun 06, 2012 at 06:46:37PM -0400, Tom Lane wrote:
> I wrote:
> > Actually, it looks like there is an extremely simple way to handle this,
> > which is to move the call of LogStandbySnapshot (which generates the WAL
> > record in question) to before the checkpoint's REDO pointer is set, but
> > after we have decided that we need a checkpoint.
> 
> On further contemplation, there is a downside to that idea, which
> probably explains why the code was written as it was: if we place the
> XLOG_RUNNING_XACTS WAL record emitted during a checkpoint before rather
> than after the checkpoint's REDO point, then a hot standby slave
> starting up from that checkpoint won't process the XLOG_RUNNING_XACTS
> record.  That means its KnownAssignedXids machinery won't be fully
> operational until the master starts another checkpoint, which might be
> awhile.  So this could result in undesirable delay in hot standby mode
> becoming active.

Stupid question, but why are we not just setting a boolean variable in
shared memory if we WAL-write a non-XLOG_RUNNING_XACTS record, and only
checkpoint if that is true?

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + It's impossible for everything to be true. +

В списке pgsql-hackers по дате отправления
От: Jeff Davis
Дата:
От: Vlad Arkhipov
Дата:
FAQ