Re: ERROR: row is too big: size 8176, maximum size 8160

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: row is too big: size 8176, maximum size 8160
Date: 2010-03-04 17:12:55
Message-ID: 20100304171255.GA14386@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

DimitryASuplatov <genesup(at)gmail(dot)com> wrote:

> Hello,
>
> I am using postgresql-8.3.7 and have recently got this error:
>
> org.postgresql.util.PSQLException: ERROR: row is too big: size 8168,
> maximum size 8160

Please show us your table definition.

Wild guess: you have many, many columns, non-text (INT or something
else), and such a row is bigger than 8 KByte, PG can't use TOAST.

I think, you should re-design your table, read about normalisation.

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Terry 2010-03-04 17:26:08 join from multiple tables
Previous Message DimitryASuplatov 2010-03-04 17:07:44 ERROR: row is too big: size 8176, maximum size 8160