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