From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: pg_basebackup pg_receivexlog: Issue fsync more carefully |
Date: | 2016-09-29 15:32:22 |
Message-ID: | E1bpdJu-0008W8-JT@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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(dot)paquier(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-09-29 17:32:44 | pgsql: Allow contrib/file_fdw to read from a program, like COPY FROM PR |
Previous Message | Heikki Linnakangas | 2016-09-29 10:17:27 | pgsql: Don't bother to lock bufmgr partitions in pg_buffercache. |