Re: [PATCHES] SRA Win32 sync() code

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>, PostgreSQL-patches <pgsql-patches@postgresql.org>, PostgreSQL Win32 port list <pgsql-hackers-win32@postgresql.org>
Date: 2003-11-16T20:17:08Z
Lists: pgsql-hackers
Jan Wieck <JanWieck@Yahoo.com> writes:
> Removing sync() entirely requires very accurate fsync()'ing in the 
> background writer, the checkpointer and the backends. Basically none of 
> them can mark a block "clean" if he fails to fsync() the relation later! 
> This will be a mess to code.

Not really.  The O_SYNC solution for example would be trivial to code.

			regards, tom lane