public inbox for [email protected]  
help / color / mirror / Atom feed
From: Magnus Hagander <[email protected]>
To: Robert Haas <[email protected]>
Cc: Kevin Grittner <[email protected]>
Cc: pgsql-hackers <[email protected]>
Subject: Re: no universally correct setting for fsync
Date: Fri, 7 May 2010 16:03:55 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>

On Fri, May 7, 2010 at 16:00, Robert Haas <[email protected]> wrote:
> On Fri, May 7, 2010 at 9:47 AM, Kevin Grittner
> <[email protected]> wrote:
>> Someone just posted to the -admin list with a database corrupted
>> while running with fsync=off.  I was all set to refer him to the
>> documentation explaining why he should stop doing this, but to my
>> surprise the documentation waffles on the issue way past what I
>> think is reasonable.
>>
>> http://www.postgresql.org/docs/8.4/interactive/runtime-config-wal.html#GUC-FSYNC
>>
>> There are dire-sounding statements interspersed with:
>>
>> | using fsync results in a performance penalty
>>
>> | Due to the risks involved, there is no universally correct setting
>> | for fsync.
>>
>> | If you trust your operating system, your hardware, and your
>> | utility company (or your battery backup), you can consider
>> | disabling fsync.
>>
>> Isn't this a little too rosy a picture to paint?
>
> I agree.  I've always thought this part of the documentation made
> setting fsync=off much more reasonable than I feel it to be.

+1, definitely. fsync=off should only be done if you *really*
understand what it means, and that requires a lot more explanation
than that...


-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/



view thread (35+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: no universally correct setting for fsync
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox