Re: fdatasync(2) on macOS

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: fdatasync(2) on macOS
Дата
Msg-id CA+hUKG+kAnr9KNq=SdP9jUCBixH=Uwkjg86jyb1J0L=ou5S7QQ@mail.gmail.com
обсуждение исходный текст
Ответ на fdatasync(2) on macOS  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
On Fri, Jan 15, 2021 at 7:53 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> That was fun, but now I'm asking myself: do we really want to use an
> IO synchronisation facility that's not declared by the vendor?

I should add, the default wal_sync_method is open_datasync, not
fdatasync.  I'm pretty suspicious of that too: neither O_SYNC nor
O_DSYNC appears as a documented flag for open(2) and the numbers look
suspicious.  Perhaps they only define them to support aio_fsync(2).



В списке pgsql-hackers по дате отправления: