Re: Disaster! - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Disaster!
Date
Msg-id 871xpow1x8.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Disaster!  (Manfred Spraul <manfred@colorfullife.com>)
Responses Re: Disaster!  (Manfred Spraul <manfred@colorfullife.com>)
List pgsql-hackers
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.

With sync replaced by fsync then any filesystem ought to guarantee the data
has reached disk by the time fsync returns. I think this is even true of NFS
or AFS, though I wouldn't depend on it for my own data.

-- 
greg



pgsql-hackers by date:

Previous
From: "Steve Tibbett"
Date:
Subject: Re: [pgsql-hackers-win32] What's left?
Next
From: Manfred Spraul
Date:
Subject: Re: Disaster!