Re: Windows now has fdatasync()

David Rowley <dgrowleyml@gmail.com>

From: David Rowley <dgrowleyml@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Michael Paquier <michael@paquier.xyz>, Dave Page <dpage@pgadmin.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-07-20T04:08:05Z
Lists: pgsql-hackers

Attachments

On Wed, 20 Jul 2022 at 15:22, Thomas Munro <thomas.munro@gmail.com> wrote:
> Ok, I've pushed the Windows patch.  I'll watch the build farm to see
> if I've broken any of the frankentoolchain Windows animals.

Just to get in there before the farm does... I just got a boatload of
redefinition of HAVE_FDATASYNC warnings.  I see it already gets
defined in pg_config.h

All compiles cleanly with the attached.

David

Commits

  1. Remove configure probe for fdatasync.

  2. Remove O_FSYNC and associated macros.

  3. Fix warnings on Windows.

  4. Add wal_sync_method=fdatasync for Windows.