Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CBF6E9F947D for ; Mon, 5 Nov 2007 11:42:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96102-03 for ; Mon, 5 Nov 2007 11:42:15 -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 463389F9457 for ; Mon, 5 Nov 2007 11:42:15 -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 lA5Fg64v020270; Mon, 5 Nov 2007 10:42:06 -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: <65196.164.214.4.62.1194275734.squirrel@www.patriot.net> References: <64187.164.214.4.62.1194262856.squirrel@www.patriot.net> <17893.1194269190@sss.pgh.pa.us> <65196.164.214.4.62.1194275734.squirrel@www.patriot.net> Comments: In-reply-to eromain@patriot.net message dated "Mon, 05 Nov 2007 10:15:34 -0500" Date: Mon, 05 Nov 2007 10:42:06 -0500 Message-ID: <20269.1194277326@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/52 X-Sequence-Number: 27295 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