Re: Buffer Cache question.... - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Buffer Cache question....
Date
Msg-id 200304302047.h3UKl5j01004@candle.pha.pa.us
Whole thread Raw
In response to Buffer Cache question....  (Medi Montaseri <medi.montaseri@intransa.com>)
Responses Re: Buffer Cache question....  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-general
Medi Montaseri wrote:
> I am using PG 7.2 with fsync truned on but still need a more immediate
> write thru.
> Does PG uses the fsync (or open_sync, etc) just for the WAL or for
> tables as well ?

Just for WAL.

> I understand the consequence of limiting buffer cache but my application
> cares more about
> integrity than performance. I'd like to be able to write the data to the
> physical storage ASAP,
> or ideally 100% in sync mode.
>
> I have found that by reducing the checkpoint parameters I can write the
> data to disk sooner.
> For example
>
> checkpoint_segments = 1
> checkpoint_timeout = 30
>
> What else do I have to work with....?

PostgreSQL is already 100% reliable (pull plug and see) so I don't see
any value to changing those parameters.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073


pgsql-general by date:

Previous
From: Erik Ronström
Date:
Subject: check_foreign_key
Next
From: Stephan Szabo
Date:
Subject: Re: check_foreign_key