From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Default to wal_sync_method=fdatasync on FreeBSD.
Date: Mon, 15 Feb 2021 03:24:02 +0000
Message-ID: <E1lBUUU-0006sP-Lp@gemulon.postgresql.org> (raw)
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
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/800131df74c4b870b6a459bcee0acc0bb89f75ff
Modified Files
--------------
doc/src/sgml/config.sgml | 4 ++--
src/backend/utils/misc/postgresql.conf.sample | 2 +-
src/include/port/freebsd.h | 9 +++++++++
3 files changed, 12 insertions(+), 3 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Default to wal_sync_method=fdatasync on FreeBSD.
In-Reply-To: <E1lBUUU-0006sP-Lp@gemulon.postgresql.org>
References: <E1lBUUU-0006sP-Lp@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox