Re: Patch to improve reliability of postgresql on linux nfs - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Patch to improve reliability of postgresql on linux nfs
Date
Msg-id 4E6A16C0020000250004105A@gw.wicourts.gov
Whole thread Raw
In response to Re: Patch to improve reliability of postgresql on linux nfs  (Noah Misch <noah@leadboat.com>)
List pgsql-hackers
Noah Misch <noah@leadboat.com> wrote:
> We shouldn't complain when a kernel provides a conforming write(),
> even if it appears that the kernel achieved little by using some
> freedom afforded it.
I remember we had some compiler warnings in the logging area because
we were making the assumption that no implementation would ever use
that freedom.  I suggested we replace the simple, unchecked calls to
write with a function which did what we expected through an API
conforming loop:
http://archives.postgresql.org/pgsql-hackers/2011-02/msg01719.php
The response was that we could ignore the documented API because we
had "never seen nor heard of it being true for writes to disk
files".  I'm still uncomfortable with that.  Where I have seen
people code to implementation details rather than the documented
API, it has often not turned out well in the long run.
I'd still be willing to put together a patch for that if people buy
into it.
-Kevin


pgsql-hackers by date:

Previous
From: Nulik Nol
Date:
Subject: fsyncing data to disk
Next
From: Florian Pflug
Date:
Subject: Re: fsyncing data to disk