Re: 7.2.3: tuple is too big (max 8136)

From: pilsl(at)goldfisch(dot)at
To: Doug McNaught <doug(at)mcnaught(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 7.2.3: tuple is too big (max 8136)
Date: 2002-11-04 00:11:06
Message-ID: 20021104011105.A11131@goldfisch.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On Fri, Nov 01, 2002 at 08:50:54AM -0500, Doug McNaught wrote:
>
> It's possible you are hitting the maximum column limit rather than the
> tuple size limit. The FAQ list the max columns in a table as:
>
> "250-1600 depending on column types"
>

I already created the table with 1600 cols of varchar(30) so this
should not be the limit. And the errormessage is clearly talking about
the tuples size. (which should not have such a limit in 7.2.3).

> So try a tuple of the same size but fewer columns and see if that's
> the issue.
>

I created smaller tables (200-300 cols of varchar(1000)) and inserted
rows with long text and the error didnt occure. I cant tell if the
size of this tuple is then below the 8k-limit cause I dont know how to
calculate the size of the tuple from a given insert-command.

(The only idea about the tuple-size is when I get the error where the
actual tuple-size is printed. There seems to be no relation between
the length of the supplied command and the tuple-size reported in the
error)

To check the problem it would be very helpful to me to learn more
about tuple-size. It seem like postgres would use compression, cause a
supplied insert-command of length 620000 lead to the same tuplesize of
20200 than a insert-command of length 20000.

>
> I'm sure you're right but it's always good to double-check. ;)
>

I did double and triple.

thnx,
peter

--
mag. peter pilsl
IT-Consulting
tel: +43-699-1-3574035
fax: +43-699-4-3574035
pilsl(at)goldfisch(dot)at

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-11-04 00:19:56 Re: 7.2.3: tuple is too big (max 8136)
Previous Message john-paul delaney 2002-11-03 21:39:16 Re: Newbie: More readline woes.

Browse pgsql-sql by date

  From Date Subject
Next Message Doug McNaught 2002-11-04 00:19:56 Re: 7.2.3: tuple is too big (max 8136)
Previous Message Tom Lane 2002-11-03 16:08:10 Re: uniqueidentifier datatype for 7.3.X