Re: [ADMIN] pg_dump ERROR: missing chunk number 0 for toast value - Mailing list pgsql-admin

From michael@sqlexec.com
Subject Re: [ADMIN] pg_dump ERROR: missing chunk number 0 for toast value
Date
Msg-id 58D3BEBF.9020701@sqlexec.com
Whole thread Raw
In response to [ADMIN] pg_dump ERROR: missing chunk number 0 for toast value  (<ramonpadilla1@yahoo.co.uk>)
List pgsql-admin
As a start, zero in on the relation, index,column, table:

select 36791::regclass;


Restart the server with:

zero_damaged_pages=true
ignore_system_indexes=true


Do full vacuum again:
VACUUM FULL VERBOSE public.bodycontent;

If still a problem, consider dropping all the indexes and recreate
them.  Then try to do the vacuum full again.

If you still have a problem:
Use a program like python/psycopg2 and write a loop that fetches every
row in the table and capture with exception the rows that it fails on.
Then delete those rows.  Then do a dump of the table to /dev/null and
see if it completes without errors. If so, you will need to dump and
recreate the table.

Regards,
Michael Vitale


ramonpadilla1@yahoo.co.uk wrote:
> missing chunk



pgsql-admin by date:

Previous
From: Samed YILDIRIM
Date:
Subject: Re: [ADMIN] Replication Between heterogeneous Databases
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] - Need Clarification about filenodes under base database directory