Re: 9.6 and fsync=off

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Petr Jelinek <petr(at)2ndquadrant(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 9.6 and fsync=off
Date: 2016-04-28 20:38:31
Message-ID: CANP8+jKtR+MCL3YAvT5b_aP3g-E5Mq_Bq5G4bh1oMcijnrRVcw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 28 April 2016 at 22:30, David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:

> On Thursday, April 28, 2016, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>
>> On 27 April 2016 at 17:04, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
>>
>>> On 27 April 2016 at 21:44, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>>
>>>> Petr Jelinek <petr(at)2ndquadrant(dot)com> writes:
>>>> > +1 (Abhijit's wording with data loss changed to data corruption)
>>>>
>>>> I'd suggest something like
>>>>
>>>> #fsync = on # flush data to disk for crash
>>>> safety
>>>> # (turning this off can cause
>>>> # unrecoverable data
>>>> corruption!)
>>>>
>>>>
>>> Looks good.
>>>
>>> The docs on fsync are already good, it's just a matter of making people
>>> think twice and actually look at them.
>>>
>>
>> If fsync=off and you turn it on, does it fsync anything at that point?
>>
>> Or does it mean only that future fsyncs will occur?
>>
>>
> http://www.postgresql.org/docs/current/static/runtime-config-wal.html
>
> 4th paragraph in the fsync section.
>

Thanks. I've never touched that parameter! But I could have read the docs.

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2016-04-28 20:44:23 Re: 9.6 and fsync=off
Previous Message David G. Johnston 2016-04-28 20:30:37 Re: 9.6 and fsync=off