Re: O_DIRECT for WAL writes - Mailing list pgsql-patches

From Bruno Wolff III
Subject Re: O_DIRECT for WAL writes
Date
Msg-id 20050603192451.GA25970@wolff.to
Whole thread Raw
In response to Re: O_DIRECT for WAL writes  (Mary Edie Meredith <maryedie@osdl.org>)
List 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 by date:

Previous
From: Mary Edie Meredith
Date:
Subject: Re: O_DIRECT for WAL writes
Next
From: Simon Riggs
Date:
Subject: WAL bypass for CTAS