diff options
author | Thomas Munro <tmunro@postgresql.org> | 2021-02-15 15:43:39 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2021-02-15 16:04:59 +1300 |
commit | f900a79ecdc1864a6ead72c97c34a41012227eaf (patch) | |
tree | 79dfa5d680b37149cc299be5fb52ef78aca962f8 /doc/src | |
parent | 2c8b42b50df6cc5ba6987c400a857d6bbfdf0300 (diff) | |
download | postgresql-f900a79ecdc1864a6ead72c97c34a41012227eaf.tar.gz postgresql-f900a79ecdc1864a6ead72c97c34a41012227eaf.zip |
Default to wal_sync_method=fdatasync on FreeBSD.
FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to
choose open_datasync as its default value. That may not be a good
choice for all systems, and performs worse than fdatasync in some
scenarios. Let's preserve the existing default behavior for now.
Like commit 576477e73c4, which did the same for Linux, back-patch to all
supported releases.
Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/config.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 5ef1c7ad3c5..4df1405d2e2 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -2928,7 +2928,7 @@ include_dir 'conf.d' Not all of these choices are available on all platforms. The default is the first method in the above list that is supported by the platform, except that <literal>fdatasync</literal> is the default on - Linux. The default is not necessarily ideal; it might be + Linux and FreeBSD. The default is not necessarily ideal; it might be necessary to change this setting or other aspects of your system configuration in order to create a crash-safe configuration or achieve optimal performance. |