Re: Disaster!

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Manfred Spraul <manfred(at)colorfullife(dot)com>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Disaster!
Date: 2004-01-25 14:14:27
Message-ID: 871xpow1x8.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Manfred Spraul <manfred(at)colorfullife(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Manfred Spraul 2004-01-25 14:32:33 Re: Disaster!
Previous Message Bill Moran 2004-01-25 12:13:54 Re: Regarding development and the submittal of patches