pg_basebackup pg_receivexlog: Issue fsync more carefully

Peter Eisentraut <peter_e@gmx.net>

Commit: bc34223bc1e2c51dff2007b3d3bd492a09b5a491
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2016-09-29T16:00:00Z
Releases: 10.0
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>

Files