Re: fdatasync(2) on macOS - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: fdatasync(2) on macOS
Date
Msg-id CA+hUKG+kAnr9KNq=SdP9jUCBixH=Uwkjg86jyb1J0L=ou5S7QQ@mail.gmail.com
Whole thread Raw
In response to fdatasync(2) on macOS  (Thomas Munro <thomas.munro@gmail.com>)
List 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 by date:

Previous
From: "lchch1990@sina.cn"
Date:
Subject: Re: Wrong HINT during database recovery when occur a minimal wal.
Next
From: "kuroda.hayato@fujitsu.com"
Date:
Subject: RE: ResourceOwner refactoring