Re: how unsafe (or worst scenarios) when setting fsync - Mailing list pgsql-performance

From Tom Lane
Subject Re: how unsafe (or worst scenarios) when setting fsync
Date
Msg-id 11142.1146149866@sss.pgh.pa.us
Whole thread Raw
In response to Re: how unsafe (or worst scenarios) when setting fsync  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: how unsafe (or worst scenarios) when setting fsync
List pgsql-performance
Simon Riggs <simon@2ndquadrant.com> writes:
> On Thu, 2006-04-27 at 16:31 +1000, Guoping Zhang wrote:
>> Can we set fsync OFF for the performance benefit, have the risk of only 5
>> minutes data loss or much worse?

> Thats up to you.

> fsync can be turned on and off, so you can make critical changes with
> fsync on, then continue with fsync off.

I think it would be a mistake to assume that the behavior would be
nice clean "we only lost recent changes".  Things could get arbitrarily
badly corrupted if some writes make it to disk and some don't.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: how unsafe (or worst scenarios) when setting fsync OFF for postgresql
Next
From: Vivek Khera
Date:
Subject: Re: Large (8M) cache vs. dual-core CPUs