]> granicus.if.org Git - postgresql/commit
Handle fsync failures in pg_receivewal and pg_recvlogical
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 29 Jul 2019 05:41:06 +0000 (07:41 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 29 Jul 2019 05:54:57 +0000 (07:54 +0200)
commit1e2fddfa33d3c7cc93ca3ee0f32852699bd3e012
treef7b7e5d49b9baf01a57b3be42c030b74bffa3fb2
parenteb43f3d19324d7e5376b1f57fc2e5c142a6b5f3d
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
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/walmethods.c