Handle fsync failures in pg_receivewal and pg_recvlogical

Peter Eisentraut <peter@eisentraut.org>

Commit: 1e2fddfa33d3c7cc93ca3ee0f32852699bd3e012
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-07-29T05:54:57Z
Releases: 13.0
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 <michael@paquier.xyz>
Reviewed-by: Sehrope Sarkuni <sehrope@jackdb.com>
Discussion: https://www.postgresql.org/message-id/flat/9b49fe44-8f3e-eca9-5914-29e9e99030bf@2ndquadrant.com

Files

Discussion