Re: Migrating from Informix to Postgre

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Migrating from Informix to Postgre
Дата
Msg-id m3iszvubde.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на Re: Migrating from Informix to Postgre  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general
Tommi Maekitalo <t.maekitalo@epgmbh.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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: select into without creating new table
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: referential integrity violation