diff options
author | Thomas Munro | 2022-07-20 01:50:57 +0000 |
---|---|---|
committer | Thomas Munro | 2022-07-20 01:55:52 +0000 |
commit | 9430fb407bb64cc842e56fb5844265a9343dafba (patch) | |
tree | a241a5a72a450498c746d8b2a0e8d8f25f741b4b /configure.ac | |
parent | b24b2be119c4cccceae838b62a3519a6d70b9476 (diff) |
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
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5bd29a4d2f2..612dabf6988 100644 --- a/configure.ac +++ b/configure.ac @@ -1988,6 +1988,7 @@ if test "$PORTNAME" = "win32"; then AC_CHECK_FUNCS(_configthreadlocale) AC_REPLACE_FUNCS(gettimeofday) AC_LIBOBJ(dirmod) + AC_LIBOBJ(fdatasync) AC_LIBOBJ(kill) AC_LIBOBJ(open) AC_LIBOBJ(system) |