Re: pg_dump error - Mailing list pgsql-admin

From Michael Fuhr
Subject Re: pg_dump error
Date
Msg-id 20050907145519.GA19992@winnie.fuhr.org
Whole thread Raw
In response to pg_dump error  (Adam Witney <awitney@sgul.ac.uk>)
List pgsql-admin
On Wed, Sep 07, 2005 at 10:50:44AM +0100, Adam Witney wrote:
> 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"

You might have a corrupted TOAST table.  Have you had any hardware
problems, database or system crashes, etc., lately?  Do you see any
unusual messages in the database or system log files?  What are the
results of the following queries?

SELECT reltoastrelid::regclass
FROM pg_class
WHERE relname = 'measured_bioassay_base';

(The following query refers to the above result as pg_toast.pg_toast_XXXXXX.)

SELECT xmin, xmax, chunk_seq, length(chunk_data)
FROM pg_toast.pg_toast_XXXXXX
WHERE chunk_id = 144391872;

--
Michael Fuhr

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump error
Next
From: Adam Witney
Date:
Subject: Re: pg_dump error... Follow up