Re: O_DIRECT for WAL writes

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: O_DIRECT for WAL writes
Дата
Msg-id 20050603192451.GA25970@wolff.to
обсуждение исходный текст
Ответ на Re: O_DIRECT for WAL writes  (Mary Edie Meredith <maryedie@osdl.org>)
Список pgsql-patches
On Fri, Jun 03, 2005 at 09:43:13 -0700,
  Mary Edie Meredith <maryedie@osdl.org> wrote:
>
> Looking at this from another angle, is there really any way that you can
> say a write is truly guaranteed in the event of a failure?  I think in
> the end to be safe, you cannot.  That's why (and I'm not telling you
> anything new) there is no substitute for backups and log archiving for
> databases. Databases must be able to recognize the last _good
> transaction logged and roll forward to that from the backup (including
> detecting partial writes to the log).  I'm sure the PostgreSQL community
> has worked hard to do the equivalent of that within the PostgreSQL
> architecture.

Some assumptions are made about what order blocks are written to the disk.
If these assumptions are not true, you may not be able to recover using
the WAL log and have to resort to falling back to your last consistant
snapshot.

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

Предыдущее
От: Mary Edie Meredith
Дата:
Сообщение: Re: O_DIRECT for WAL writes
Следующее
От: Simon Riggs
Дата:
Сообщение: WAL bypass for CTAS