Re: BTree max row size?

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Ernest Kim <krazykid(at)cs(dot)bu(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: BTree max row size?
Date: 2004-12-18 15:20:29
Message-ID: 20041218152029.GC18049@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Dec 16, 2004 at 06:20:57PM -0500, Ernest Kim wrote:

Hi,

> I'm getting the following error message when I try to update a row in
> a table:
>
> ERROR: 54000: index row size 2720 exceeds btree maximum, 2713
>
> Does anyone know how to to change the btree maximum row size? How did
> it come up with 2713 as a max row size?

You could compile Postgres with BLCKSZ set to a higher value (currently
8192). Or you could change your indexing strategy, because if you now
want to store 2720 bytes, some other day you may want to store 11000,
and then you would overflow the ~10900 bytes that a 32768 BLCKSZ would
buy you.

What are you indexing?

The 2713 comes from (8192 - some overhead) / 3.

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Las cosas son buenas o malas segun las hace nuestra opinión" (Lisias)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Timothy Perrigo 2004-12-18 16:09:15 Re: OSX 10.3.7 broke Postgresql 8.0.0b5?
Previous Message Mike Mascari 2004-12-18 11:13:00 Re: NewsForge Poll: Favorite open source database?