Re: BUG #3674: Unnecessary checkpoints by WAL Writer - Mailing list pgsql-bugs

From Simon Riggs
Subject Re: BUG #3674: Unnecessary checkpoints by WAL Writer
Date
Msg-id 1192479846.5272.15.camel@ebony.site
Whole thread Raw
In response to Re: BUG #3674: Unnecessary checkpoints by WAL Writer  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Fri, 2007-10-12 at 13:06 -0400, Tom Lane wrote:
> "ITAGAKI Takahiro" <itagaki.takahiro@gmail.com> writes:
> > WAL Writer requests unnecessary checkpoints with CHECKPOINT_CAUSE_XLOG.
> > RedoRecPtr, declared in xlog.c, is initialized at StartupXLOG() but never
> > updated in WAL Writer because it never calls XLogInsert(). It judges excess
> > of segments wrongly.
>
> Good catch.  I think the best fix for this is to make XLogWrite call
> GetRedoRecPtr and recheck the condition before actually sending a
> signal.

Yes, very good catch, my bad. Thanks Itagaki.

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com

pgsql-bugs by date:

Previous
From: Stefan Kaltenbrunner
Date:
Subject: Re: IPv6 Support in 8.0.3
Next
From: Simon Riggs
Date:
Subject: Re: BUG #3667: Job scheduling with Greenplum fails