Re: client-side fsync() error handling - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: client-side fsync() error handling
Date
Msg-id 20200221041800.GC3260@paquier.xyz
Whole thread Raw
In response to Re: client-side fsync() error handling  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: client-side fsync() error handling
List pgsql-hackers
On Thu, Feb 20, 2020 at 10:10:11AM +0100, Peter Eisentraut wrote:
> OK, added in new patch.

Thanks, that looks good.

> The frontends do neither right now, or at least the error handling is very
> inconsistent and inscrutable.  It would be possible in theory to add a retry
> option, but that would be a very different patch, and given what we have
> learned about fsync(), it probably wouldn't be widely useful.

Perhaps.  Let's have this discussion later if there are drawbacks
about changing things the way your patch does.  If we don't do that,
we'll never know about it either and this patch makes things safer.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: allow running parts of src/tools/msvc/ under not Windows
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Add kqueue(2) support to the WaitEventSet API.