Add wal_sync_method=fdatasync for Windows.
authorThomas Munro <tmunro@postgresql.org>
Wed, 20 Jul 2022 01:50:57 +0000 (13:50 +1200)
committerThomas Munro <tmunro@postgresql.org>
Wed, 20 Jul 2022 01:55:52 +0000 (13:55 +1200)
commit9430fb407bb64cc842e56fb5844265a9343dafba
treea241a5a72a450498c746d8b2a0e8d8f25f741b4b
parentb24b2be119c4cccceae838b62a3519a6d70b9476
Add wal_sync_method=fdatasync for Windows.

Windows 10 gained support for flushing NTFS files with fdatasync()
semantics.  The main advantage over open_datasync (in Windows API terms
FILE_FLAG_WRITE_THROUGH) is that the latter does not flush SATA drive
caches.  The default setting is not changed, so users have to opt in to
this.

Discussion: https://postgr.es/m/CA%2BhUKGJZJVO%3DiX%2Beb-PXi2_XS9ZRqnn_4URh0NUQOwt6-_51xQ%40mail.gmail.com
configure
configure.ac
doc/src/sgml/wal.sgml
src/include/c.h
src/include/port/win32_port.h
src/include/port/win32ntdll.h
src/port/fdatasync.c [new file with mode: 0644]
src/port/win32ntdll.c
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Solution.pm