Re: failed index creation: ERROR: index_formtuple

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Nate Teller" <nate(dot)teller(at)mindspring(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: failed index creation: ERROR: index_formtuple
Date: 2004-01-31 05:12:17
Message-ID: 26799.1075525937@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Nate Teller" <nate(dot)teller(at)mindspring(dot)com> writes:
> I've had a nonclustered index on a column of type "character varying(11)"
> for many years.
> I dropped it and went to recreate the exact same index, but it fails every
> time.

> ERROR: index_formtuple: data takes 28640 bytes, max is 8191

Ugh :-(. It's certainly not possible for a valid varchar(11) value to
need 28k bytes. You have evidently got some corrupted data in your
table. I'd suggest scanning the table for clearly-bogus rows and
getting rid of them. Another approach is to pg_dump the table and
try to reload it.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Glaesemann 2004-01-31 06:20:33 Re: Two joins on same foreign key
Previous Message Tom Lane 2004-01-31 04:41:12 Re: PostgreSQL 7.4.1 and pgdb.py