Re: checkpoints are duplicated even while the system is idle

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: checkpoints are duplicated even while the system is idle
Date: 2011-10-06 18:08:20
Message-ID: 4E8DEE94.7080507@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 06.10.2011 20:58, Tom Lane wrote:
> Robert Haas<robertmhaas(at)gmail(dot)com> writes:
>> On Thu, Oct 6, 2011 at 12:44 PM, Tom Lane<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> I think the point is that a totally idle database should not continue to
>>> emit WAL, not even at a slow rate. There are also power-consumption
>>> objections to allowing the checkpoint process to fire up to no purpose.
>
>> Hmm, OK. I still think it's a little funny to say that
>> checkpoint_timeout will force a checkpoint every N minutes except when
>> it doesn't, but maybe there's no real harm in that as long as we
>> document it properly.
>
> Well ... if we think that it's sane to only checkpoint once per WAL
> segment, maybe we should just take out checkpoint_timeout.

Huh? Surely not, in my mind checkpoint_timeout is the primary way of
controlling checkpoints, and checkpoint_segments you just set "high
enough" so that you never reach it.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-10-06 18:18:29 Re: checkpoints are duplicated even while the system is idle
Previous Message Simon Riggs 2011-10-06 18:05:16 Re: checkpoints are duplicated even while the system is idle