Re: Windows now has fdatasync()
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>, Dave Page <dpage@pgadmin.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-07-20T03:22:07Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-O_FSYNC-and-associated-macros.patch (text/x-patch) patch 0001
- 0002-Remove-fdatasync-configure-probe.patch (text/x-patch) patch 0002
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. Mikael kindly upgraded conchuela, so that leaves just prairiedog without fdatasync. I've attached a patch to drop the configure probe for that once prairiedog's host is reassigned to new duties, if we're agreed on that. While in this part of the code I noticed another anachronism that could be cleaned up: our handling of the old pre-standard BSD O_FSYNC flag. Pulling on that I noticed I could remove a bunch of associated macrology.
Commits
-
Remove configure probe for fdatasync.
- d2e150831af8 16.0 landed
-
Remove O_FSYNC and associated macros.
- a1b56090eb54 16.0 landed
-
Fix warnings on Windows.
- bde60daa0ec9 16.0 landed
-
Add wal_sync_method=fdatasync for Windows.
- 9430fb407bb6 16.0 landed