Re: fsync failure in durable_unlink ignored in xlog.c? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fsync failure in durable_unlink ignored in xlog.c?
Date
Msg-id 18720.1558634817@sss.pgh.pa.us
Whole thread Raw
In response to Re: fsync failure in durable_unlink ignored in xlog.c?  (Andres Freund <andres@anarazel.de>)
Responses Re: fsync failure in durable_unlink ignored in xlog.c?  (Mark Dilger <hornschnorter@gmail.com>)
Re: fsync failure in durable_unlink ignored in xlog.c?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2019-05-23 10:46:02 -0700, Mark Dilger wrote:
>> Is this code safe against fsync failures?  If so, can I get an explanation
>> that I might put into a code comment patch?

> What's the danger you're thinking of here? The issue with ignoring fsync
> failures is that it could be the one signal about data corruption we get
> for a write()/fsync() that failed - i.e. that durability cannot be
> guaranteed. But we don't care about the file contents of those files.

Hmm ... if we don't care, why are we issuing an fsync at all?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: fsync failure in durable_unlink ignored in xlog.c?
Next
From: Mark Dilger
Date:
Subject: Re: fsync failure in durable_unlink ignored in xlog.c?