Re: Power outage borked things (8.1.10)...

Поиск
Список
Период
Сортировка
От Darren Reed
Тема Re: Power outage borked things (8.1.10)...
Дата
Msg-id 47BC8C15.1060805@fastmail.net
обсуждение исходный текст
Ответ на Re: Power outage borked things (8.1.10)...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Power outage borked things (8.1.10)...  (Steve Holdoway <steve.holdoway@firetrust.com>)
Список pgsql-admin
Tom Lane wrote:
> Darren Reed <darrenr+postgres@fastmail.net> writes:
> > # su postgres -c "/usr/pkg/bin/pg_resetxlog -f /data/db"
> > Transaction log reset
>
> > PANIC:  could not access status of transaction 4570963
> > DETAIL:  could not read from file "pg_clog/0004" at offset 90112:
> > Undefined error: 0
>
> You may need to append a few pages of zeroes to pg_clog/0004 ...
>

So doing this:
# dd if=/dev/zero bs=8192 count=1 | cat >> 0004

allowed the database to start, but tables are missing.

I'll keep restoring.

Thanks,
Darren


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Power outage borked things (8.1.10)...
Следующее
От: Michael Monnerie
Дата:
Сообщение: Re: Power outage borked things (8.1.10)...