pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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:23:27 +0000
Message-ID: <E1lBUTv-0006r1-5k@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_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a27f3a7f4159c5afaf33932df16ca4fed6689c06

Modified Files
--------------
doc/src/sgml/config.sgml                      | 2 +-
src/backend/utils/misc/postgresql.conf.sample | 2 +-
src/include/port/freebsd.h                    | 9 +++++++++
3 files changed, 11 insertions(+), 2 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1lBUTv-0006r1-5k@gemulon.postgresql.org>
Permalink:  ../E1lBUTv-0006r1-5k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lBUTv-0006r1-5k@gemulon.postgresql.org

 · 

reply

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: <E1lBUTv-0006r1-5k@gemulon.postgresql.org>
  References: <E1lBUTv-0006r1-5k@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