Re: What happens when wal fails?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: What happens when wal fails?
Date: 2005-08-04 14:29:03
Message-ID: 15531.1123165743@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joseph Shraibman <jks(at)selectacast(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-08-04 14:35:28 Re: weirdness with the a sql update
Previous Message Tony Caduto 2005-08-04 14:19:44 weirdness with the a sql update