Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id BB9B69F95B5 for ; Mon, 5 Nov 2007 09:26:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 95955-04 for ; Mon, 5 Nov 2007 09:26:29 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id BFEFF9F959C for ; Mon, 5 Nov 2007 09:26:35 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id lA5DQUIs017894; Mon, 5 Nov 2007 08:26:30 -0500 (EST) To: eromain@patriot.net cc: pgsql-admin@postgresql.org Subject: Re: Error Migrating From 7.4 to 8.2.5 In-reply-to: <64187.164.214.4.62.1194262856.squirrel@www.patriot.net> References: <64187.164.214.4.62.1194262856.squirrel@www.patriot.net> Comments: In-reply-to eromain@patriot.net message dated "Mon, 05 Nov 2007 06:40:56 -0500" Date: Mon, 05 Nov 2007 08:26:30 -0500 Message-ID: <17893.1194269190@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/50 X-Sequence-Number: 27293 eromain@patriot.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