aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/connection.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-02-24 16:32:34 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-02-24 16:51:26 +0100
commit1420617b14e2e3722367b826986a50ea33ff62ec (patch)
tree0666ac60117f352a7a30ca120d44be55e6c32c90 /contrib/postgres_fdw/connection.c
parenta91e2fa94180f24dd68fb6c99136cda820e02089 (diff)
downloadpostgresql-1420617b14e2e3722367b826986a50ea33ff62ec.tar.gz
postgresql-1420617b14e2e3722367b826986a50ea33ff62ec.zip
Change client-side fsync_fname() to report errors fatally
Given all we have learned about fsync() error handling in the last few years, reporting an fsync() error non-fatally is not useful, unless you don't care much about the file, in which case you probably don't need to use fsync() in the first place. Change fsync_fname() and durable_rename() to exit(1) on fsync() errors other than those that we specifically chose to ignore. This affects initdb, pg_basebackup, pg_checksums, pg_dump, pg_dumpall, and pg_rewind. Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/d239d1bd-aef0-ca7c-dc0a-da14bdcf0392%402ndquadrant.com
Diffstat (limited to 'contrib/postgres_fdw/connection.c')
0 files changed, 0 insertions, 0 deletions