Re: Error Migrating From 7.4 to 8.2.5 - Mailing list pgsql-admin

From Tom Lane
Subject Re: Error Migrating From 7.4 to 8.2.5
Date
Msg-id 20269.1194277326@sss.pgh.pa.us
Whole thread Raw
In response to Error Migrating From 7.4 to 8.2.5  (eromain@patriot.net)
List pgsql-admin
eromain@patriot.net writes:
>> Hmmm ... in 7.4 16408 is pg_statistic, which fortunately for you is all
>> easily-regenerated data.  I'd try "DELETE FROM pg_statistic".

> Deleting from pg_statistic produced error: xlog flush request 58/A0AFB340
> is not satisfied --- flushed only to 5/B2004628
> CONTEXT:  writing block 3 of relation 21182403/16408

Ugh ... it's troubling that you have this on several different pages;
that makes it more probable that the corruption extends beyond
pg_statistic.  Anyway, the next thing to try is manually truncating the
file to zero length (while the postmaster is stopped).  Check the
database OID, then it should be $PGDATA/base/DBOID/16408.

> I am running just 7.4. Thanks!!

Yikes.  The current release in that branch is 7.4.18, and practically
every one of those 18 updates fixed significant bugs.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Database size with large objects
Next
From: "Peter Koczan"
Date:
Subject: Re: psql schemas