Re: Database corruption

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Database corruption
Дата
Msg-id 20070519011158.GA31543@alvh.no-ip.org
обсуждение исходный текст
Ответ на Database corruption  (Shane <shane-pgsql@cm.nu>)
Ответы Re: Database corruption  (Shane <shane-pgsql@cm.nu>)
Список pgsql-general
Shane wrote:
> Hello all,
>
> Whilst running a regular pg_dumpall, I received the
> following error from our spamassassin DB.
>
> pg_dump: ERROR:  could not access status of transaction
> 4521992
> DETAIL:  could not open file "pg_clog/0004": No such file
> or directory
> pg_dump: SQL command to dump the contents of table
> "bayes_token" failed: PQendcopy() failed.
> pg_dump: Error message from server: ERROR:  could not
> access status of transaction 4521992
> DETAIL:  could not open file "pg_clog/0004": No such file
> or directory
> pg_dump: The command was: COPY public.bayes_token (id,
> token, spam_count, ham_count, atime) TO stdout;
> pg_dumpall: pg_dump failed on database "spamassassin",
> exiting
>
> It's clear something's amiss with the database but I'm not
> sure where to go from here.  Is any data from bayes_token
> recoverable, should I just delete the data in that table or
> does the whole database need to be dropped and recreated?

Hang on.  You may still recover the data.  What range of files do you
see in the pg_clog directory?  Also, what version is this?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Ben
Дата:
Сообщение: Re: Data replication through disk replication
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Data replication through disk replication