On 07/07/2015 10:59 PM, Graeme B. Bell wrote:
Cache flushing isn't an atomic operation though. Even if the ordering is right, you are likely to have a partial fsync on the disk when the lights go out - isn't your FS still corrupt?
If the filesystem is worth its salt, no. Journaling filesystems for example rely on the journal to work around that problem, and there are other mechanisms.
PostgreSQL has exactly the same problem and uses the WAL to solve it. - Heikki -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance