aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/postgresql.conf.sample
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2021-02-15 15:43:39 +1300
committerThomas Munro <tmunro@postgresql.org>2021-02-15 16:04:59 +1300
commitf900a79ecdc1864a6ead72c97c34a41012227eaf (patch)
tree79dfa5d680b37149cc299be5fb52ef78aca962f8 /src/backend/utils/misc/postgresql.conf.sample
parent2c8b42b50df6cc5ba6987c400a857d6bbfdf0300 (diff)
downloadpostgresql-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 'src/backend/utils/misc/postgresql.conf.sample')
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index bd57e917e16..db6db376eb0 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -206,7 +206,7 @@
#wal_sync_method = fsync # the default is the first option
# supported by the operating system:
# open_datasync
- # fdatasync (default on Linux)
+ # fdatasync (default on Linux and FreeBSD)
# fsync
# fsync_writethrough
# open_sync