pg_basebackup pg_receivexlog: Issue fsync more carefully
Peter Eisentraut <peter_e@gmx.net>
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
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/pg_basebackup.c | modified | +27 −0 |
| src/bin/pg_basebackup/receivelog.c | modified | +30 −22 |
| src/common/file_utils.c | modified | +100 −5 |
| src/include/common/file_utils.h | modified | +5 −2 |