Re: DB errors - Mailing list pgsql-general

From Scott Marlowe
Subject Re: DB errors
Date
Msg-id dcc563d10710120842s3c6720ccm680302bc4c9fbfb3@mail.gmail.com
Whole thread Raw
In response to DB errors  ("Akash Garg" <akash.garg@gmail.com>)
List pgsql-general
On 10/12/07, Akash Garg <akash.garg@gmail.com> wrote:
> We had a crash of one of our db systems last night.  After doing a fsck of
> he file system and getting the db backup, we're getting a lot of these
> messages in our logs.  The DB will also occasionally crash now.
>
> Oct 12 07:40:16 postgres[30770]: [3-1] 2007-10-12 07:40:16 PDTERROR:  could
> not access status of transaction 2259991368
> Oct 12 07:40:16 postgres[30770]: [3-2] 2007-10-12 07:40:16 PDTDETAIL:  Could
> not read from file "pg_clog/086B" at offset 73728: Success.

Got a recent backup?

IT sounds like your db is corrupted, and while recovering some of the
data in it might be possible, it would be better to start over with a
clean backup.

Note that if your database acts like this after a crash, you are
likely running with unreliable fsyncs on your system (either they were
turned on in postgresql.conf or your hardware lies to the OS).  That's
bad.  A properly built postgresql server should be capable of
recovering from this with no corruption.

pgsql-general by date:

Previous
From: "Martin Gainty"
Date:
Subject: Re: not work in IE
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Missing files under pg_data following power failure