Re: Final(?) proposal for wal_sync_method changes
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Bruce Momjian <bruce@momjian.us>, pgsql-hackers@postgresql.org
Date: 2010-12-07T23:58:44Z
Lists: pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes: >> I am unclear as to the reason why there is a test for >> HAVE_FSYNC_WRITETHROUGH_ONLY in pg_fsync(). Perhaps that is also >> leftover from a previous vision of how this all works? Or does an >> fsync() call actually fail on Windows? > No, fsync responds fine. It just don't actually sync to disk. Right, which is also an accurate description of its behavior on OS X, as well as Linux (if you didn't change hdparm settings). So the real question here is what's the point of treating Windows differently. regards, tom lane