Re: What happens when wal fails? - Mailing list pgsql-general

From Tom Lane
Subject Re: What happens when wal fails?
Date
Msg-id 15531.1123165743@sss.pgh.pa.us
Whole thread Raw
In response to What happens when wal fails?  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: What happens when wal fails?  (Neil Conway <neilc@samurai.com>)
List pgsql-general
Joseph Shraibman <jks@selectacast.net> writes:
> If I put the pg_xlog directory on its own disk, then that disk fails,
> does that mean the postgres is hosed or does it just mean that postgres
> no longer safe from a power outage?

The latter.  The WAL is actually write-only during normal operation.

However you need to define "fail".  If it fails in such a way that the
OS notices (which is likely) then the database is going to lock up
because it can't write to WAL.

            regards, tom lane

pgsql-general by date:

Previous
From: Tony Caduto
Date:
Subject: weirdness with the a sql update
Next
From: Martijn van Oosterhout
Date:
Subject: Re: weirdness with the a sql update