Re: O_DIRECT for WAL writes

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Mary Edie Meredith <maryedie(at)osdl(dot)org>
Cc: Neil Conway <neilc(at)samurai(dot)com>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)lab(dot)ntt(dot)co(dot)jp>, pgsql-patches(at)postgresql(dot)org
Subject: Re: O_DIRECT for WAL writes
Date: 2005-06-03 19:24:51
Message-ID: 20050603192451.GA25970@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Fri, Jun 03, 2005 at 09:43:13 -0700,
Mary Edie Meredith <maryedie(at)osdl(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2005-06-03 19:33:02 Re: executing OS programs from pg
Previous Message Tom Lane 2005-06-03 19:16:29 Re: executing OS programs from pg

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2005-06-03 22:06:49 WAL bypass for CTAS
Previous Message Mary Edie Meredith 2005-06-03 16:43:13 Re: O_DIRECT for WAL writes