Re: no universally correct setting for fsync
Kevin Grittner <kevin.grittner@wicourts.gov>
From: "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
To: "Robert Haas" <robertmhaas@gmail.com>, "Bruce Momjian" <bruce@momjian.us>
Cc: "Michael Tharp" <gxti@partiallystapled.com>, <pgsql-hackers@postgresql.org>, "Craig Ringer" <craig@postnewspapers.com.au>
Date: 2010-05-10T15:55:40Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> wrote: > "It might be safe" is a bit of a waffle. It would be nice if we > could provide some more clear guidance as to whether it is or is > not, or how someone could go about testing their hardware to find > out. I think that the issue is that you could have corruption if some, but not all, disk sectors from a page were written from OS cache to controller cache when a failure occurred. The window would be small for a RAM-to-RAM write, but it wouldn't be entirely *safe* unless there's some OS/driver environment where you could count on all the sectors making it or none of them making it for every single page. Does such an environment exist? -Kevin