Re: Patch to improve reliability of postgresql on linux nfs
От | Kevin Grittner |
---|---|
Тема | Re: Patch to improve reliability of postgresql on linux nfs |
Дата | |
Msg-id | 4E6A16C0020000250004105A@gw.wicourts.gov обсуждение исходный текст |
Ответ на | Re: Patch to improve reliability of postgresql on linux nfs (Noah Misch <noah@leadboat.com>) |
Список | 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 по дате отправления: