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

From Merlin Moncure
Subject Re: Win32 and fsync()
Date
Msg-id 303E00EBDD07B943924382E153890E5434A907@cuthbert.rcsinc.local
Whole thread Raw
In response to Win32 and fsync()  ("Dann Corbit" <DCorbit@connx.com>)
List pgsql-hackers
>> For Win32, in order to emulate fsync() we will need to call
>> FlushFileBuffers():
The supplied link does not work.  FlushFileBuffers() is for flushing
files opened with CreateFile() etc.

For files opened with fopen(), call fflush().

For files opened with _open(), call _commit().

Likekly the win32 port code, which I have yet to inspect, will use the
second version.

Merlin




pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: Win32 and fsync()
Next
From: Tom Lane
Date:
Subject: Re: POSIX regex performance bug in 7.3 Vs. 7.2