Upgrading postgresql-8.4 - Mailing list pgsql-general

From Steve Erickson
Subject Upgrading postgresql-8.4
Date
Msg-id BD7EE863F673A14EBF99D95562AEE15E44B1DA71@digi-pdc.digitilitiprod.int
Whole thread Raw
Responses Re: Upgrading postgresql-8.4
List pgsql-general
I have a database that's about 600 GB.  I did a pg_dump (pg_dump --format plain --create --encoding UTF8 --oids --verbose --file "/var/tmp/145_backup.sql" "digi") and, after 442 GB, I got an error, "pg_dump: Error message from server: ERROR:  missing chunk number 0 for toast value 49209130 in pg_toast_17031".  This was using postgresql-8.4.3 on Ubuntu 10.04.  I upgraded our postgres to 8.4.16 using 'apt-get install postgresql-8.4'.

This went well and postgres restarted just fine.  However, now when I execute a pg_dump I get
a missing chunk 0 for pg_toast_2619 while querying pg_attribute.  I did a reindex on pg_toast_2619, then tried to VACUUM ANALYZE pg_attribute but again got the missing chunk 0 error.

Did I miss a step doing the upgrade or recovery attempt, or is the data corrupted?  I did the postgres upgrade and pg_dump on another server and it went very smooth so I'm flustered at how the problem seems to have gotten worse.

pgsql-general by date:

Previous
From: Paul Jungwirth
Date:
Subject: Re: Avoiding a deadlock
Next
From: Joe Van Dyk
Date:
Subject: Re: Joining against a view that uses an aggregate - performance issue