Re: unable to repair table: missing chunk number

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Krohn <alex(at)gossamer-threads(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: unable to repair table: missing chunk number
Date: 2002-04-19 19:43:59
Message-ID: 3175.1019245439@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Krohn <alex(at)gossamer-threads(dot)com> writes:
> When I try to do any sort of SELECT, or COPY that accesses a part of the
> table, I get:
> ERROR: missing chunk number 0 for toast value 12851102

This is a long shot --- but does a VACUUM fix the problem? There was
a bug in TOAST up through 7.2 that could cause it to mess up after an
aborted VACUUM FULL. I think a fresh VACUUM would fix it though.

If not, you'll have to identify exactly which tuple references the
trashed toast value and get rid of it. If you're only seeing this
with one specific toast ID mentioned then there's no reason to think
you've lost more than one value, but table-wide SELECT or COPY won't
work unless you exclude the bad value.

BTW, how did you get into this state?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Krohn 2002-04-19 20:08:42 Re: unable to repair table: missing chunk number
Previous Message Francisco Reyes 2002-04-19 19:17:34 Re: Troubleshooting cored dumps