Re: Win32 and fsync()

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Win32 and fsync()
Date: 2003-02-03 22:48:14
Message-ID: 303E00EBDD07B943924382E153890E5434A907@cuthbert.rcsinc.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-02-03 22:51:28 Re: POSIX regex performance bug in 7.3 Vs. 7.2
Previous Message Andrew Dunstan 2003-02-03 22:47:17 Re: Win32 and fsync()