mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Remove wal_sync_method=fsync_writethrough on Windows.
The "fsync" level already flushes drive write caches on Windows (as does "fdatasync"), so it only confuses matters to have an apparently higher level that isn't actually different at all. That leaves "fsync_writethrough" only for macOS, where it actually does something different. Reviewed-by: Magnus Hagander <magnus@hagander.net> Discussion: https://postgr.es/m/CA%2BhUKGJ2CG2SouPv2mca2WCTOJxYumvBARRcKPraFMB6GSEMcA%40mail.gmail.com
This commit is contained in:
@ -109,9 +109,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>fdatasync</literal> (NTFS only), <literal>fsync</literal> or
|
||||
<literal>fsync_writethrough</literal>, which prevent
|
||||
write caching.
|
||||
<literal>fdatasync</literal> (NTFS only) or <literal>fsync</literal>,
|
||||
which prevent write caching.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
|
Reference in New Issue
Block a user