]> granicus.if.org Git - postgresql/commit
pg_basebackup pg_receivexlog: Issue fsync more carefully
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Sep 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Sep 2016 16:00:00 +0000 (12:00 -0400)
commitbc34223bc1e2c51dff2007b3d3bd492a09b5a491
treefaa81c853389393ff0efe2f7cbea30cc0b549770
parentbf5bb2e85b6492c7245b9446efaf43d52a98db13
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>
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/receivelog.c
src/common/file_utils.c
src/include/common/file_utils.h