Handle fsync failures in pg_receivewal and pg_recvlogical

It is not safe to simply report an fsync error and continue.  We must
exit the program instead.

Reviewed-by: Michael Paquier <[email protected]>
Reviewed-by: Sehrope Sarkuni <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/flat/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1e2fddfa33d3c7cc93ca3ee0f32852699bd3e012

Modified Files
--------------
src/bin/pg_basebackup/pg_recvlogical.c |  4 ++--
src/bin/pg_basebackup/receivelog.c     | 12 ++++++------
src/bin/pg_basebackup/walmethods.c     |  2 +-
3 files changed, 9 insertions(+), 9 deletions(-)

Reply via email to