How to deal with corrupted database?

Поиск
Список
Период
Сортировка
От Ruslan A. Bondar
Тема How to deal with corrupted database?
Дата
Msg-id 20111109150225.076c2f38@list.ru
обсуждение исходный текст
Ответы Re: How to deal with corrupted database?  (Craig Ringer <ringerc@ringerc.id.au>)
Re: How to deal with corrupted database?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-admin
Hello all.

This is a first time I receive such an issue.
My database was corrupted some way.
When I'm trying to access the database via psql I receive:

root@udb:/etc/bacula# psql -U bacula
psql: FATAL:  could not read block 0 in file "base/16387/86057840": read only 0 of 8192 bytes


So I want to drop it, and recover from backup. But when I'm trying to drop the database I see:

postgres=# drop database bacula;
ERROR:  could not access status of transaction 15892843
DETAIL:  Could not open file "pg_subtrans/00F2": No such file or directory.


Is there any way to recover the database to working state, or drop it?

OS: Linux Debian Sid
postgres version: 9.0.4
uname: Linux udb 2.6.32-5-xen-686 #1 SMP Tue Oct 19 17:09:04 UTC 2010 i686 GNU/Linux

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

Предыдущее
От: Jesper Krogh
Дата:
Сообщение: Untraditional point in time recovery.
Следующее
От: Alexander Burbello
Дата:
Сообщение: Exp/Imp data with blobs