X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9218FD7E9F for ; Wed, 7 Sep 2005 11:54:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46759-06 for ; Wed, 7 Sep 2005 14:54:17 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3C364D7DF8 for ; Wed, 7 Sep 2005 11:54:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j87EsOHr027245; Wed, 7 Sep 2005 10:54:25 -0400 (EDT) To: Adam Witney Cc: pgsql-admin Subject: Re: pg_dump error In-reply-to: References: Comments: In-reply-to Adam Witney message dated "Wed, 07 Sep 2005 10:50:44 +0100" Date: Wed, 07 Sep 2005 10:54:24 -0400 Message-ID: <27244.1126104864@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/57 X-Sequence-Number: 18794 Adam Witney writes: > pg_dump: ERROR: unexpected chunk number 3292 (expected 5) for toast value > 144391872 > pg_dump: SQL command to dump the contents of table "measured_bioassay_base" > failed: PQendcopy() failed. > Any ideas whats happened here? If you're lucky, it's just a corrupted index on the toast table for "measured_bioassay_base", in which case a REINDEX will fix it. You'll need to look at the pg_class entry for "measured_bioassay_base" to find out what the toast table's name is. Something like regression=# select relname from pg_class where oid = regression-# (select reltoastrelid from pg_class where relname = 'measured_bioa ssay_base'); relname ----------------- pg_toast_597768 (1 row) regression=# reindex table pg_toast.pg_toast_597768; REINDEX I would be interested to see "pg_filedump -i -f" output for the toast table's index before you blow it away, if you have time for that. regards, tom lane