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

From ITAGAKI Takahiro
Subject BUG #3674: Unnecessary checkpoints by WAL Writer
Date
Msg-id 200710121456.l9CEuGTv059859@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #3674: Unnecessary checkpoints by WAL Writer
List pgsql-bugs
The following bug has been logged online:

Bug reference:      3674
Logged by:          ITAGAKI Takahiro
Email address:      itagaki.takahiro@gmail.com
PostgreSQL version: 8.3beta1
Operating system:   independent
Description:        Unnecessary checkpoints by WAL Writer
Details:

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.

Though bgwriter also does not call XLogInsert(), but it would be OK because
bgwriter updates RedoRecPtr in CreateCheckPoint().

pgsql-bugs by date:

Previous
From: Martin Pitt
Date:
Subject: libpq5 8.3 breaks 8.2 compatibility with encodings
Next
From: Martin Pitt
Date:
Subject: Re: libpq5 8.3 breaks 8.2 compatibility with encodings