Re: Disaster! - Mailing list pgsql-hackers

From Manfred Spraul
Subject Re: Disaster!
Date
Msg-id 4013D381.20900@colorfullife.com
Whole thread Raw
In response to Re: Disaster!  (Greg Stark <gsstark@mit.edu>)
Responses Re: Disaster!
List pgsql-hackers
Greg Stark wrote:

>Manfred Spraul <manfred@colorfullife.com> writes:
>
>  
>
>>That means
>>    open();
>>    write();
>>    sync();
>>
>>could succeed, but the data is not stored on disk, correct?
>>    
>>
>
>That would be true on any filesystem. Unless you throw an fsync() call in.
>  
>
The checkpoint code uses sync() right now. Actually sync();sleep(2);sync().
Win32 has no sync() call, therefore it will use fsyncs. Perhaps 
platforms with deferred errors on close must use fsync, too. Hopefully 
parallel fsyncs - sequential fsyncs could be slow due to more seeking.

--   Manfred



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Disaster!
Next
From: Randolf Richardson
Date:
Subject: Re: Copyright (C) 1996-2002