Re: Checkpoint question

From: Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk>
To: u15074 <u15074(at)hs-harz(dot)de>
Cc: "pgsql-general (at) postgresql (dot) org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Checkpoint question
Date: 2003-07-21 09:52:26
Message-ID: 20030721105226.A29177@bacon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 21/07/2003 07:30 u15074 wrote:
> To improve the performance of PostgreSQL, resp. to avoid too frequently
> occuring
> checkpoints, it is recommended to increase the number of wal files
> (checkpoint_segments).
> So I increased the number of checkpoint segments to be able to write a
> lot of
> data into the database without interruptions due to checkpoints.
> My question now is concerning the cost of a checkpoint if I have a lot of
> checkpoint segments. At checkpoint time will there be checkpointed all
> the
> information contained in all log files, lets assume that I have 40
> checkpoint
> segments for example, or will only some informations of the log files be
> checkpointed?
> If all log files are checkpointed, won't this take a lot of time, and if
> so
> wouldn't it be better to leave the number of checkoint segments to a
> smaller value?
> I'm not quite familiar with the checkpoint concept, so maybe I'm wrong
> with my
> thoughts. Can anyone give advice/explanations?

I'm sure there must be some point where increasing the number of wal files
does not improve performance and your reasoning seem right to me. ISTR
reading something in the archives about someone doing some performance
tests with number of wal buffers and not seeing a big difference even when
large numbers were used.

HTH

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+

In response to

Browse pgsql-general by date

  From Date Subject
Next Message FRANKLIN,JOHNSON (HP-Singapore,ex5) 2003-07-21 10:42:48 Need help to take PGSql Dump
Previous Message Jason Godden 2003-07-21 08:27:21 Re: Trigger Function DML and Permissions