Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: fsync and battery-backed caches



On Mon, Feb 27, 2006 at 11:12:57AM +0100, Tino Wildenhain wrote:
> Javier Somoza schrieb:
> >
> >        Hi all
> >
> >        Is it secure to disable fsync havin battery-backed disk cache?
> >               
> >        Thx
> >
> No. fsync moves the data from OS memory cache to disk-adaptor
> cache which is required to benefit from battery backup.

More importantly, in guarantees that data is committed to non-volatile
storage in such a way that PostgreSQL can recover from a crash without
corruption.

If you have a battery-backed controller and turn on write caching you
shouldn't see much effect from fsync anyway.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby(at)pervasive(dot)com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group