client-side fsync() error handling

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: client-side fsync() error handling
Date: 2020-02-11 08:22:54
Message-ID: d239d1bd-aef0-ca7c-dc0a-da14bdcf0392@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Continuing the discussion from [0], there are still a number of fsync()
calls in client programs that are unchecked or where errors are treated
non-fatally.

Digging around through the call stack, I think changing fsync_fname() to
just call exit(1) on errors instead of proceeding would address most of
that.

This affects (at least) initdb, pg_basebackup, pg_checksums, pg_dump,
pg_dumpall, and pg_rewind.

Thoughts?

[0]:
https://www.postgresql.org/message-id/flat/9b49fe44-8f3e-eca9-5914-29e9e99030bf%402ndquadrant.com

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-Change-client-side-fsync_fname-to-report-errors-fata.patch text/plain 2.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andy Fan 2020-02-11 09:17:15 Re: [PATCH] Erase the distinctClause if the result is unique by definition
Previous Message Julien Rouhaud 2020-02-11 07:57:51 Re: [PATCH] Erase the distinctClause if the result is unique by definition