Re: Corrupt data directory

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Corrupt data directory
Дата
Msg-id 20050222143337.GA22550@wolff.to
обсуждение исходный текст
Ответ на Corrupt data directory  (KÖPFERL Robert <robert.koepferl@sonorys.at>)
Список pgsql-admin
On Tue, Feb 22, 2005 at 12:09:28 +0100,
  KÖPFERL Robert <robert.koepferl@sonorys.at> wrote:
> Hi,
> what is to do if somehow, someif the data directory went corrupt?
> (kill -9, Plug out)
> Are there any tools or other ways to rescue that or is the only way
> rm *; initdb
> and restore a backup?

You just restart postgres. It will clean up properly.

Note this assumes that you haven't disabled fsync or left write caching
on for your disk drives.

If a disk drive actually goes bad (or enough drives to lose a raid array),
then you need to go to backups.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Zouari Fourat
Дата:
Сообщение: postgres user, forgotten password
Следующее
От: Dick Davies
Дата:
Сообщение: Re: pg_hba.conf