Re: Database Recovery Procedures - Mailing list pgsql-general

From Network Administrator
Subject Re: Database Recovery Procedures
Date
Msg-id 1063817596.3f68917cd245d@webmail.vcsn.com
Whole thread Raw
In response to Re: Database Recovery Procedures  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Database Recovery Procedures
List pgsql-general
Quoting Tom Lane <tgl@sss.pgh.pa.us>:

> Network Administrator <netadmin@vcsn.com> writes:
> > ..if I using the psql client, and issue a "select * from <corrupt table
> name>
> > limit 5" if get this...
>
> > PANIC:  read of clog file 5, offset 16384 failed: Success
>
> Hm, not good :-(.  What files actually exist in $PGDATA/pg_clog/ (names
> and sizes)?

Here you go...

-rw-------    1 postgres users      262144 Jul 20 15:53 0000
-rw-------    1 postgres users      262144 Jul 31 12:57 0001
-rw-------    1 postgres users      262144 Aug 12 17:32 0002
-rw-------    1 postgres users      262144 Aug 26 00:15 0003
-rw-------    1 postgres users      262144 Sep  9 23:44 0004
-rw-------    1 postgres users       16384 Sep 10 21:21 0005


> > So back to my original question.  What are the recover procedures (if
> > any) that should be tried before I grab my PGDATA path from tape?
>
> You may be up against having to do that, but some investigation first
> seems called for.

Yep, its ready to go.  When and if nothing surgical can be done.

>             regards, tom lane
>


--
Keith C. Perry
Director of Networks & Applications
VCSN, Inc.
http://vcsn.com

____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com

pgsql-general by date:

Previous
From: Daniel Schuchardt
Date:
Subject: psql and blob
Next
From: "Cornelia Boenigk"
Date:
Subject: converting PostgreSQ- timestamp to UNIX-timestamp ?