Re: fdatasync(2) on macOS

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: fdatasync(2) on macOS
Date: 2021-01-15 09:10:00
Message-ID: CA+hUKG+kAnr9KNq=SdP9jUCBixH=Uwkjg86jyb1J0L=ou5S7QQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 15, 2021 at 7:53 PM Thomas Munro <thomas(dot)munro(at)gmail(dot)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).

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message kuroda.hayato@fujitsu.com 2021-01-15 09:10:34 RE: ResourceOwner refactoring
Previous Message lchch1990@sina.cn 2021-01-15 09:04:19 Re: Wrong HINT during database recovery when occur a minimal wal.