From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: pg_basebackup pg_receivexlog: Issue fsync more carefully
Date: Thu, 29 Sep 2016 15:32:22 +0000
Message-ID: <E1bpdJu-0008W8-JT@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
pg_basebackup pg_receivexlog: Issue fsync more carefully
Several places weren't careful about fsyncing in the way. See 1d4a0ab1
and 606e0f98 for details about required fsyncs.
This adds a couple of functions in src/common/ that have an equivalent
in the backend: durable_rename(), fsync_parent_path()
From: Michael Paquier <michael.paquier@gmail.com>
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/bc34223bc1e2c51dff2007b3d3bd492a09b5a491
Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 27 +++++++++
src/bin/pg_basebackup/receivelog.c | 52 ++++++++++-------
src/common/file_utils.c | 105 ++++++++++++++++++++++++++++++++--
src/include/common/file_utils.h | 7 ++-
4 files changed, 162 insertions(+), 29 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: peter_e@gmx.net
Subject: Re: pgsql: pg_basebackup pg_receivexlog: Issue fsync more carefully
In-Reply-To: <E1bpdJu-0008W8-JT@gemulon.postgresql.org>
References: <E1bpdJu-0008W8-JT@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