Joost Kraaijeveld <J.Kraaijeveld@xxxxxxxxxx> writes: > I assume that for PostgreSQL "written to disk" is after fsync returned > successfully. In practice that could very well mean that the data is > still in a cache somewhere (controller or harddisk, not in the OS > anymore, see also man page of fsync) What it had better mean, if you want your database to be reliable, is that the data is stored someplace that will survive a system crash (power outage, kernel panic, etc). A battery-backed RAM cache is OK, assuming that total failure of the RAID controller is not one of the events you consider likely enough to need protection against. The description of your SATA drive makes it sound like the drive does not put data on the platter before reporting "write complete", but only stores it in on-board RAM cache. It is highly unlikely that there is any battery backing for that cache, and therefore that drive is not to be trusted. regards, tom lane