Re: Best way to recover from crash? - Mailing list pgsql-general

From Tom Lane
Subject Re: Best way to recover from crash?
Date
Msg-id 10818.1090519176@sss.pgh.pa.us
Whole thread Raw
In response to Best way to recover from crash?  (Steve Wampler <swampler@noao.edu>)
Responses Re: Best way to recover from crash?  (Steve Wampler <swampler@noao.edu>)
List pgsql-general
Steve Wampler <swampler@noao.edu> writes:
> Immediately after finally deploying our PG database up
> on our mountain-top observatory, we got hit by lightening.
> (The machines were *supposed* to be installed on a RUPS,
> but weren't.  Sigh)

> A file was lost.  Now many simple commands cause the
> DB to 'crash':

> I do nightly backups of the DBs so aside from observing time
> lost this isn't catestrophic, but since it takes so long to
> restore from backup (some of the DBs are fairly large) I was
> wondering if there's a 'known procedure' for quickly recovering
> from the above.

I think you'd be foolish not to initdb and reload from the backups.
You have no way to know how extensive the data damage is ... you might
work around the problems you see now, only to find something else
later after you've put more data into the corrupted DB.

            regards, tom lane

pgsql-general by date:

Previous
From: Harald Fuchs
Date:
Subject: Re: polating (insert into...) a table with determined record from another table.
Next
From: Steve Wampler
Date:
Subject: Re: Best way to recover from crash?