Re: Win32 and fsync() - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Win32 and fsync()
Date
Msg-id 004e01c2cc4e$1ef25ab0$6401a8c0@DUNSLANE
Whole thread Raw
In response to Re: Win32 and fsync()  (Gavin Sherry <swm@linuxworld.com.au>)
List pgsql-hackers
----- Original Message -----
From: "Gavin Sherry" <swm@linuxworld.com.au>
[snip]
> > Where is the "other" flush besides FlushFileBuffers()?
>
> The only real code there is, it seems, an exclusive look on the file
> descriptor. (Provided of course that that is what _lock_fh(filedes) does).
>

yes, it looks that way.

I wonder what whould happen to reliability and performance if the files were
opened using Windows' write through cache flag (FILE_FLAG_WRITE_THROUGH).
Also, this article might be relevant:

http://support.microsoft.com/default.aspx?scid=kb;en-us;332023

although I see the Windows tests were done on W2000/SP3, so maybe not.

andrew




pgsql-hackers by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: Interactive Documentation - how do you want it towork?
Next
From: Bruno Wolff III
Date:
Subject: Re: PGP signing releases