Обсуждение: HELP!!! Corrupt Database!

Поиск
Список
Период
Сортировка

HELP!!! Corrupt Database!

От
Yuri Gordienko
Дата:
Hi,

The computer with database has lost power and after restarting I can't
connect to database:

connection to database "db_client" failed: FATAL:  invalid memory alloc
request size 4294901760


version:
postgresql-7.4.6


Help me with this problem. I don't have reserve copy of database :(


Thank's

--
Yuri Hordienko

Re: HELP!!! Corrupt Database!

От
Richard Huxton
Дата:
Yuri Gordienko wrote:
> Hi,
>
> The computer with database has lost power and after restarting I can't
> connect to database:
>
> connection to database "db_client" failed: FATAL:  invalid memory alloc
> request size 4294901760
>
> version:
> postgresql-7.4.6
>
> Help me with this problem. I don't have reserve copy of database :(

And now you know why you're supposed to have a backup :-(
The bad news is it sounds like your database may be corrupted. The good
news is it might be possible to recover most of it.

1. Stop the database
2. Take a complete file-level backup of *all* the files in your
PostgreSQL data directory - data, postgresql.conf, xlog stuff etc.
3. Try to start the database and see what you get in the logs. Post the
log errors here.

--
   Richard Huxton
   Archonet Ltd