pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: michael@sqlexec.com <michael@sqlexec.com>
To: ramonpadilla1@yahoo.co.uk
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: pg_dump ERROR: missing chunk number 0 for toast value
Date: Thu, 23 Mar 2017 08:25:35 -0400
Message-ID: <58D3BEBF.9020701@sqlexec.com> (raw)
In-Reply-To: <587579712.444477.1490174496291@mail.yahoo.com>
References: <587579712.444477.1490174496291.ref@mail.yahoo.com>
	<587579712.444477.1490174496291@mail.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)

Message-ID: <58D3BEBF.9020701@sqlexec.com>
Permalink:  ../58D3BEBF.9020701@sqlexec.com/
Also on:    postgresql.org/message-id/58D3BEBF.9020701@sqlexec.com

 · 

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: michael@sqlexec.com, ramonpadilla1@yahoo.co.uk
  Subject: Re: pg_dump ERROR: missing chunk number 0 for toast value
  In-Reply-To: <58D3BEBF.9020701@sqlexec.com>

* 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