Re: does database shut down cleanly when WAL device fails?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brandon Craig Rhodes <brandon(at)rhodesmill(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: does database shut down cleanly when WAL device fails?
Date: 2005-05-03 15:05:28
Message-ID: 8989.1115132728@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brandon Craig Rhodes <brandon(at)rhodesmill(dot)org> writes:
> And the disputed point:

> - If the drive holding the WAL fails, then the database engine
> will shut down cleanly by writing everything in RAM out to
> the real database tables, and no data will be lost.

Whoever claimed that has no familiarity with the code at all, and no
understanding of the basic WAL rule: write to the log BEFORE you write
data.

In point of fact, loss of the WAL drive will mean a database PANIC stop
and probably a corrupt data area afterwards, since there'd be no
guarantee that related page updates had all made it to disk.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2005-05-03 15:06:34 Re: Deep integration of PostgreSQL with Apache
Previous Message Scott Marlowe 2005-05-03 14:54:03 Re: postgresql 8 abort with signal 10