Re: Error Migrating From 7.4 to 8.2.5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: eromain(at)patriot(dot)net
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Error Migrating From 7.4 to 8.2.5
Date: 2007-11-05 13:26:30
Message-ID: 17893.1194269190@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

eromain(at)patriot(dot)net writes:
> I am running PGSQL 7.4 on a Solaris 9 system.

7.4.what exactly?

> I am trying to upgrade to
> 8.2.5. Both 7.4 and 8.2.5 are on the same server. When I try to use 8.2.5
> pg_dumpall to dump the 7.4 databse I receive the following error:
> pg_dumpall: query failed: ERROR: xlog flush request 58/A0AFB0C0 is not
> satisfied --- flushed only to 5/B2004628
> CONTEXT: writing block 15 of relation 21182403/16408

Hmmm ... in 7.4 16408 is pg_statistic, which fortunately for you is all
easily-regenerated data. I'd try "DELETE FROM pg_statistic".
If that doesn't complain, the normal process would be to VACUUM pg_statistic
and then re-ANALYZE the database, but since you're just trying to dump
data you might be able to skip that bit.

> I shut down the 7.4 database and ran pg_resetxlog. This is just a test so
> I am not worried about losing data.

Good, because that wasn't a very bright move --- I can't imagine that
the shutdown checkpoint would have worked, and pg_resetxlog after an
unclean shutdown is a recipe for losing data.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2007-11-05 13:57:44 Re: Database size with large objects
Previous Message Kenneth Marshall 2007-11-05 13:20:04 Re: RPATH issue with libpq on Solaris 8 (gcc)