summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-07-20 13:50:57 +1200
committerThomas Munro <tmunro@postgresql.org>2022-07-20 13:55:52 +1200
commit9430fb407bb64cc842e56fb5844265a9343dafba (patch)
treea241a5a72a450498c746d8b2a0e8d8f25f741b4b /doc/src
parentb24b2be119c4cccceae838b62a3519a6d70b9476 (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 'doc/src')
-rw-r--r--doc/src/sgml/wal.sgml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/wal.sgml b/doc/src/sgml/wal.sgml
index 4b6ef283c1c..01f7379ebb3 100644
--- a/doc/src/sgml/wal.sgml
+++ b/doc/src/sgml/wal.sgml
@@ -108,7 +108,8 @@
<literal>open_datasync</literal> (the default), write caching can be disabled
by unchecking <literal>My Computer\Open\<replaceable>disk drive</replaceable>\Properties\Hardware\Properties\Policies\Enable write caching on the disk</literal>.
Alternatively, set <varname>wal_sync_method</varname> to
- <literal>fsync</literal> or <literal>fsync_writethrough</literal>, which prevent
+ <literal>fdatasync</literal> (NTFS only), <literal>fsync</literal> or
+ <literal>fsync_writethrough</literal>, which prevent
write caching.
</para>
</listitem>