Re: fsync or fdatasync

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: fsync or fdatasync
Дата
Msg-id 13608.1031604172@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: fsync or fdatasync  (Dmitry Morozovsky <marck@rinet.ru>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: fsync or fdatasync
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: fsync or fdatasync