Re: fsync or fdatasync - Mailing list pgsql-admin

From Tom Lane
Subject Re: fsync or fdatasync
Date
Msg-id 13608.1031604172@sss.pgh.pa.us
Whole thread Raw
In response to Re: fsync or fdatasync  (Dmitry Morozovsky <marck@rinet.ru>)
List pgsql-admin
Dmitry Morozovsky <marck@rinet.ru> writes:
> #wal_sync_method = fsync   # the default varies across platforms:
> #                          # fsync, fdatasync, open_sync, or open_datasync

> I suppose fdatasync *is* the default on platforms where it exists. On
> *BSD it does not.

[ looks at code... ]  Actually, the current algorithm for choosing the
default is "open_datasync if it exists, else fdatasync if it exists,
else fsync".  There probably are platforms where this method yields a
non-optimal answer, but we need more data before fooling with it.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: fsync or fdatasync
Next
From: Sean Chittenden
Date:
Subject: Re: fsync or fdatasync