Re: Missing chunk number on a view?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Keaton Adams <kadams(at)mxlogic(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Missing chunk number on a view?
Date: 2008-06-11 20:20:17
Message-ID: 11306.1213215617@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Keaton Adams <kadams(at)mxlogic(dot)com> writes:
> When I attempt to drop the view I receive the following:

> keaton=# drop view kda_log_data cascade;
> ERROR: missing chunk number 0 for toast value 84631845

Presumably the toasted object in question is pg_rewrite's textual
representation of the view's ON SELECT rule. If you're lucky, this is
just an index problem and reindexing pg_rewrite's toast table index will
fix it. Since you didn't mention your PG version, I can't give you a
cookbook recipe for that ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-06-11 20:33:01 Re: Unable to dump database using pg_dump
Previous Message Richard Broersma 2008-06-11 19:07:31 Re: [ODBC] what gives: SELECT INVALID SELECT STATEMENT TO FORCE ODBC DRIVER TO UNPREPARED STATE