Re: no universally correct setting for fsync

From: Yeb Havinga <yebhavinga(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: jd(at)commandprompt(dot)com, Greg Stark <gsstark(at)mit(dot)edu>, Robert Haas <robertmhaas(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Michael Tharp <gxti(at)partiallystapled(dot)com>, pgsql-hackers(at)postgresql(dot)org, Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
Subject: Re: no universally correct setting for fsync
Date: 2010-05-11 08:00:21
Message-ID: 4BE90E95.6060100@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers

Kevin Grittner wrote:
> "Joshua D. Drake" <jd(at)commandprompt(dot)com> wrote:
>
>
>> The answer to this is:
>>
>> PostgreSQL.org recommends that this setting be left on at all
>> times. Turning it off, may lead to data corruption.
>>
>> Anything else is circumstantial and based on knowledge and facts
>> we don't have about environmental factors.
>>
>
> Perhaps Josh's language for fsync could be modified to work here
> (we're now talking about full_page_writes, for anyone who's lost
> track):
>
> | it is only advisable to turn off fsync if you can easily recreate
> | your entire database from external data.
>
> That covers bulk loads to an empty or just-backed-up database and
> entirely redundant databases. Saying it should never be turned off
> would tend to make one wonder why we have the setting at all.
>
Would the term "entirely redundant databases" include (synchronously)
replicated databases? (ps: I did indeed lose track about whether this is
about fsync or full_page_writes and did not get on the track again)

regards,
Yeb Havinga

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Josh Berkus 2010-05-11 20:41:46 Change to kernel-resources
Previous Message Greg Smith 2010-05-11 01:04:29 Re: no universally correct setting for fsync

Browse pgsql-hackers by date

  From Date Subject
Next Message Takahiro Itagaki 2010-05-11 08:03:30 Re: Patch for PKST timezone
Previous Message Dmitry Fefelov 2010-05-11 06:16:52 Re: Partitioning/inherited tables vs FKs