pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Abu Mushayeed <abumushayeed@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Increase checkpoint segments ?
Date: Tue, 12 Dec 2006 09:17:17 -0800 (PST)
Message-ID: <604882.8108.qm@web57105.mail.re3.yahoo.com> (raw)

Hello,

I have many updates happening in the DB. All of them works with millions of rows. When this happens I get the following message:

checkpoints are occurring too frequently (294 seconds apart)
Consider increasing the configuration parameter "checkpoint_segments".

Some values from my postgresql.conf files are as follows. My question is do I really increase the checkpoint segments or should I increase the WAL buffers or do an create table as and then insert instead of update statement?

shared_buffers = 20000 #60000                   # min 16 or max_connections*2, 8KB each -- Bizgres work_mem = 65536 #131072 #65536                 # min 64, size in KB -- Bizgres Database change from 1024 to 65536
maintenance_work_mem = 524288 #131072           # min 1024, size in KB
max_fsm_pages = 8000000                 # min max_fsm_relations*16, 6 bytes each
max_fsm_relations = 32768               # min 100, ~70 bytes each

fsync = on                              # turns forced synchronization on or off
wal_buffers = 128                       # min 4, 8KB each
checkpoint_segments = 256               # in logfile segments, min 1, 16MB each
checkpoint_timeout = 3600  #300         # range 30-3600, in seconds
checkpoint_warning = 300                # in seconds, 0 is off
default_statistics_target = 250         # range 1-1000

Thanks
Abu

 
---------------------------------
Have a burning question? Go to Yahoo! Answers and get answers from real people who know.

view thread (2+ messages)  latest in thread

Message-ID: <604882.8108.qm@web57105.mail.re3.yahoo.com>
Permalink:  ../604882.8108.qm@web57105.mail.re3.yahoo.com/
Also on:    postgresql.org/message-id/604882.8108.qm@web57105.mail.re3.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: abumushayeed@yahoo.com
  Subject: Re: Increase checkpoint segments ?
  In-Reply-To: <604882.8108.qm@web57105.mail.re3.yahoo.com>
  References: <604882.8108.qm@web57105.mail.re3.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox