Re: Migrating from Informix to Postgre

From: Doug McNaught <doug(at)wireboard(dot)com>
To: Tommi Maekitalo <t(dot)maekitalo(at)epgmbh(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Migrating from Informix to Postgre
Date: 2002-10-21 14:15:09
Message-ID: m3iszvubde.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tommi Maekitalo <t(dot)maekitalo(at)epgmbh(dot)de> writes:

> >
> > > 4. Does it support raw devices?
> >
> > No. We feel the performance improvement on raw devices is minimal.
> >
> But what about data-integrity? I've learned, that a write on a raw device
> guarantees, that the data is physically on the harddisk, when it returns.
> When you write into the filesystem you don't even have control about the
> order, in which writes are physically executed.
>
> It would be difficult to guarantee dataintegrity, when the datapages are
> written before WAL is on the hard-disk. That's why the Informix-people
> strongly suggests to use raw-devices.
>
> What does Postgresql do to guaratee it?

We call fsync() on the WAL files, which guarantees data is written
when it returns.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-10-21 14:21:01 Re: Migrating from Informix to Postgre
Previous Message Mike Beachy 2002-10-21 14:07:12 Re: referential integrity violation