Re: missing pg_clog files ? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: missing pg_clog files ?
Date
Msg-id 200309242157.h8OLvrG03663@candle.pha.pa.us
Whole thread Raw
In response to Re: missing pg_clog files ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Patrick Welche <prlw1@newn.cam.ac.uk> writes:
> > Indeed, the plain -d dump says that I have a chunk of /var/mail/prlw1
> > in 1000-13ff. No wonder postgres complained!
> 
> Yipes.  We have seen this sort of thing once or twice in the past.
> I don't know whether you are looking at a disk drive fault (dropping
> the right data onto the wrong sector) or a kernel fault (getting
> confused about which buffer holds which file block), but I believe
> it's one or the other.  It's hard to see how anything at the application
> level could have gotten those two files switched.  You might look to see
> if there are any updates available for your kernel.
> 
> As for recovery, you probably want to drop and reload at least that one
> table.  Whether it's worth a complete reload is your call.

Or just delete the row with that tid and see if you can access the other
data.  You might be able to get away with just restoring that one row
from backup.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: creating/accessing new runtime parameters
Next
From: Peter Eisentraut
Date:
Subject: Re: Is this a commit problem?