Re: [HACKERS] Sync vs. fsync during checkpoint

2004-02-02 Thread Greg Stark
Bruce Momjian <[EMAIL PROTECTED]> writes: > As some know, win32 doesn't have sync, and some are concerned that sync > isn't reliable enough during checkpoint anyway. > > The trick is to somehow record all files modified since the last > checkpoint, and open/fsync/close each one. Note that some p

[HACKERS] Sync vs. fsync during checkpoint

2004-01-30 Thread Bruce Momjian
As some know, win32 doesn't have sync, and some are concerned that sync isn't reliable enough during checkpoint anyway. The trick is to somehow record all files modified since the last checkpoint, and open/fsync/close each one. My idea is to stat() each file in each directory and compare the mod