mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user