Re: Too frequent checkpoints ?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Too frequent checkpoints ?
Date: 2013-02-08 16:11:51
Message-ID: 511523C7.50309@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 02/08/2013 02:37 AM, Pavan Deolasee wrote:

> I wonder if this is all expected. The database is getting ZERO
> activity. There are no connections open at this time. The checkpoints
> are happening at every 30 seconds and new WAL files are being created,
> AFAIK because the old ones are getting archived. Can't we be smart
> about not archiving new files if we did not generate any new WAL since
> the last archive ?

It is because you have it set up so that the longest time you can go
without checkpoints is 30 seconds. So no matter what, if you have 1000
checkpoint segments you are still going to checkpoint ever 30 seconds.

JD

--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC
@cmdpromptinc - 509-416-6579

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-02-08 16:14:25 Re: Bug, Feature, or what else?
Previous Message Kevin Grittner 2013-02-08 16:09:44 Re: [COMMITTERS] pgsql: Stamp 9.1.8.