pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Adam Witney <awitney@sgul.ac.uk>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg_dump error
Date: Wed, 7 Sep 2005 08:55:19 -0600
Message-ID: <20050907145519.GA19992@winnie.fuhr.org> (raw)
In-Reply-To: <BF447684.4C6C2%awitney@sgul.ac.uk>
References: <BF447684.4C6C2%awitney@sgul.ac.uk>

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



view thread (40+ messages)  latest in thread

Message-ID: <20050907145519.GA19992@winnie.fuhr.org>
Permalink:  ../20050907145519.GA19992@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050907145519.GA19992@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, awitney@sgul.ac.uk
  Subject: Re: pg_dump error
  In-Reply-To: <20050907145519.GA19992@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox