Re: WAL question - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: WAL question
Date
Msg-id 20070112155353.GD27743@alvh.no-ip.org
Whole thread Raw
In response to Re: WAL question  (Evgeny Gridasov <eugrid@fpm.kubsu.ru>)
List pgsql-general
Evgeny Gridasov wrote:
> Hello.
>
> So, what happens if I set checkpoint_segments and checkpoint_timeout very high,
> and, shared_buffers to a very low value?
> Will PostgreSQL force a checkpoint when it has not enough memory in shared_buffers for some new "un-checkpointed"
data? 

It won't force a checkpoint -- it will release memory by causing
individual buffer evictions.  (What checkpoint does is evicting all
buffers in one go, but backends can cause a buffer to be evicted if they
need it for something else).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Evgeny Gridasov
Date:
Subject: Re: WAL question
Next
From: Magnus Hagander
Date:
Subject: Re: [HACKERS] Checkpoint request failed on version 8.2.1.