Re: invalid page header

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: invalid page header
Дата
Msg-id 5816.1064536075@sss.pgh.pa.us
обсуждение исходный текст
Ответ на invalid page header  (Hornyak Laszlo <kocka@tigrasoft.hu>)
Список pgsql-admin
Hornyak Laszlo <kocka@tigrasoft.hu> writes:
> I have a problem again, now with PostgreSQL 7.3.4. One of my 1.8 million
> rows tables have damaged, it operated all the day and now it is off, we
> don`t know the reason. When we try to dump or select from it, it says
> 'Invalid page header in block 12345 in prep'.

> Does anybody know how to make our table healthy again?

You could zero out that page (while the postmaster is stopped,
preferably) but you ought to first try to figure out what data you are
going to lose.  Dumping the page with pg_filedump might provide some
clues.  See this thread for a recent exercise in file-dumping:


http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=20030922162322.E12708%40quartz.newn.cam.ac.uk&rnum=8&prev=/groups%3Fq%3Dpg_filedump%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D20030922162322.E12708%2540quartz.newn.cam.ac.uk%26rnum%3D8

Or you could just use dd; since the page header is corrupt, it's
unlikely that pg_filedump will be able to give you anything smarter
than a bare hex/ascii dump (-d mode), which dd and od could do as well.

            regards, tom lane

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

Предыдущее
От: "Donald Fraser"
Дата:
Сообщение: Re: Case Insensitive Test
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgresql going to sleep?