Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DFEE8474E61 for ; Sun, 3 Nov 2002 19:09:44 -0500 (EST) Received: from goldfisch.at (goldfisch.at [62.99.149.138]) by postgresql.org (Postfix) with ESMTP id 08ED5474E44 for ; Sun, 3 Nov 2002 19:09:44 -0500 (EST) Received: from goldfisch.at (localhost.localdomain [127.0.0.1]) by goldfisch.at (8.12.1/8.12.1) with ESMTP id gA40B63x015433; Mon, 4 Nov 2002 01:11:06 +0100 Received: (from pilsl@localhost) by goldfisch.at (8.12.1/8.12.1/Submit) id gA40B6de015430; Mon, 4 Nov 2002 01:11:06 +0100 From: pilsl@goldfisch.at Date: Mon, 4 Nov 2002 01:11:06 +0100 To: Doug McNaught Cc: pgsql-general@postgresql.org Subject: Re: 7.2.3: tuple is too big (max 8136) Message-ID: <20021104011105.A11131@goldfisch.at> References: <20021101143348.A7426@goldfisch.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/93 X-Sequence-Number: 32515 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@goldfisch.at