pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Witney <awitney@sgul.ac.uk>
To: Adam Witney <awitney@sgul.ac.uk>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg_dump error... Follow up
Date: Wed, 07 Sep 2005 15:49:45 +0100
Message-ID: <BF44BC99.4C70E%awitney@sgul.ac.uk> (raw)
In-Reply-To: <BF447684.4C6C2%awitney@sgul.ac.uk>

On 7/9/05 10:50 am, "Adam Witney" <awitney@sgul.ac.uk> wrote:

> 
> Hi,
> 
> I just ran into an error from pg_dump:
> 
> /usr/local/pgsql/bin/pg_dump -F p my_db
> 
> 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.
> pg_dump: Error message from server: ERROR:  unexpected chunk number 3292
> (expected 5) for toast value 144391872
> pg_dump: The command was: COPY public.measured_bioassay_base (bioassay_id,
> name, owner_id, writer_id, readers_id, is_deleted, delete_time, expt_id,
> protocol_application_id, source_bioassay_id, filename, fileheader, format,
> date_uploaded) TO stdout;
> 
> Any ideas whats happened here? It looks like one of my tables hasn't backed
> up correctly. This table has a text field which contains large amounts of
> data per field. The dump file is much smaller than last nights dump.
> 
> (PostgreSQL 7.4.8 on i686-pc-linux-gnu, compiled by GCC 2.95.4)

I think I have found the offending row in measured_bioassay_base... The
entry in its toast table looks like this

bugasbase2=# select chunk_id, chunk_seq, length(chunk_data) from
pg_toast.pg_toast_134401982 where chunk_id = 144391872;
 chunk_id  | chunk_seq | length
-----------+-----------+--------
 144391872 |         0 |   1998
 144391872 |         1 |   1998
 144391872 |         2 |   1998
 144391872 |         3 |   1998
 144391872 |         4 |   1998
   7625296 |      3292 |     24
   7625297 |      3292 |     24
   7625298 |      3292 |     24
   7625299 |      3292 |     24
   7625308 |      3292 |     19
   7625309 |      3292 |     16
   7625310 |      3292 |     16
   7625311 |      3292 |     20
   7625320 |      3292 |     20
   7625321 |      3292 |     19
   7625322 |      3292 |     19
   7625323 |      3292 |     20
   7625332 |      3292 |     19
   7625333 |      3292 |     19
   7625334 |      3292 |     19
   7625335 |      3292 |     19
   7625344 |      3292 |     20
   7625345 |      3292 |     20
   7625346 |      3292 |     18
   7625347 |      3292 |     18
   7625356 |      3292 |     19
   7625357 |      3292 |     19
   7625358 |      3292 |     18
   7625359 |      3292 |     20
   7625368 |      3292 |     19
   7625369 |      3292 |     20
   7625370 |      3292 |     20
   7625371 |      3292 |     20
   7625380 |      3292 |     19
   7625381 |      3292 |     19
   7625382 |      3292 |     19
   7625383 |      3292 |     19
 144391872 |        37 |   1998
 144391872 |        38 |   1998
 144391872 |        39 |   1998
.. 200 more rows..

I can delete the row in measured_bioassay_base and reload the data for it,
but i'd like to know if it is a symptom of a bigger problem, any ideas how
this might have happened?

Thanks for any help

Adam


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




view thread (13+ messages)  latest in thread

Message-ID: <BF44BC99.4C70E%awitney@sgul.ac.uk>
Permalink:  ../BF44BC99.4C70E%25awitney@sgul.ac.uk/
Also on:    postgresql.org/message-id/BF44BC99.4C70E%awitney@sgul.ac.uk

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: awitney@sgul.ac.uk
  Subject: Re: pg_dump error... Follow up
  In-Reply-To: <BF44BC99.4C70E%awitney@sgul.ac.uk>
  References: <BF447684.4C6C2%awitney@sgul.ac.uk> <BF44BC99.4C70E%awitney@sgul.ac.uk>

* 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