Re: Default wal_sync_method on FreeBSD

2021-02-14 Thread Thomas Munro
On Fri, Jan 8, 2021 at 2:19 PM Thomas Munro wrote: > The system header change has one interesting consequence for existing > releases of PostgreSQL, though: xlogdefs.h now sees that there is an > O_DSYNC macro that is distinct from O_SYNC, and defaults to > wal_sync_method=open_datasync. That's

Default wal_sync_method on FreeBSD

2021-01-07 Thread Thomas Munro
Hi hackers, My learn-me-some-operating-system-hacking project for the holidays was to add O_DSYNC to FreeBSD 13 (due out end of Q1ish). I was motivated by my project to port some of Andres's Linux-only PostgreSQL AIO stuff to POSIX interfaces, where you need O_DSYNC to initiate the asynchronous