Re: What happens when wal fails?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What happens when wal fails?
Дата
Msg-id 15531.1123165743@sss.pgh.pa.us
обсуждение исходный текст
Ответ на What happens when wal fails?  (Joseph Shraibman <jks@selectacast.net>)
Ответы Re: What happens when wal fails?  (Neil Conway <neilc@samurai.com>)
Список 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 по дате отправления:

Предыдущее
От: Tony Caduto
Дата:
Сообщение: weirdness with the a sql update
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: weirdness with the a sql update