From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add wal_sync_method=fdatasync for Windows.
Date: Wed, 20 Jul 2022 01:58:33 +0000
Message-ID: <E1oDyyt-000MJo-VR@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9430fb407bb64cc842e56fb5844265a9343dafba
Modified Files
--------------
configure | 6 +++++
configure.ac | 1 +
doc/src/sgml/wal.sgml | 3 ++-
src/include/c.h | 2 +-
src/include/port/win32_port.h | 6 +++++
src/include/port/win32ntdll.h | 10 +++++++-
src/port/fdatasync.c | 53 +++++++++++++++++++++++++++++++++++++++++++
src/port/win32ntdll.c | 6 ++++-
src/tools/msvc/Mkvcbuild.pm | 3 ++-
src/tools/msvc/Solution.pm | 2 +-
10 files changed, 86 insertions(+), 6 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Add wal_sync_method=fdatasync for Windows.
In-Reply-To: <E1oDyyt-000MJo-VR@gemulon.postgresql.org>
References: <E1oDyyt-000MJo-VR@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox