Re: HELP!!! Corrupt Database! - Mailing list pgsql-general

From Richard Huxton
Subject Re: HELP!!! Corrupt Database!
Date
Msg-id 42B7CC80.80205@archonet.com
Whole thread Raw
In response to HELP!!! Corrupt Database!  (Yuri Gordienko <gue@datecs.kiev.ua>)
List pgsql-general
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

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Scripting issues
Next
From: "David Parker"
Date:
Subject: startup time