RE: Allowing WAL fsync to be done via O_SYNC - Mailing list pgsql-hackers

From Mikheev, Vadim
Subject RE: Allowing WAL fsync to be done via O_SYNC
Date
Msg-id 8F4C99C66D04D4118F580090272A7A234D3322@sectorbase1.sectorbase.com
Whole thread Raw
In response to Allowing WAL fsync to be done via O_SYNC  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Allowing WAL fsync to be done via O_SYNC  (Alfred Perlstein <bright@wintelcom.net>)
List pgsql-hackers
> I believe that we don't know enough yet to nail down a hard-wired
> decision.  Vadim's idea of preferring O_DSYNC if it appears to be
> different from O_SYNC is a good first cut, but I think we'd 
> better make it possible to override that, at least for testing purposes.

So let's leave fsync as default and add option to open log files
with O_DSYNC/O_SYNC.

Vadim


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgmonitor completed
Next
From: Peter Eisentraut
Date:
Subject: Re: Allowing WAL fsync to be done via O_SYNC