X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C572E11F72A6 for ; Mon, 3 Apr 2006 00:41:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11571-08 for ; Mon, 3 Apr 2006 00:41:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 33BDB11F7295 for ; Mon, 3 Apr 2006 00:41:06 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k333ekJ24787; Sun, 2 Apr 2006 23:40:46 -0400 (EDT) From: Bruce Momjian Message-Id: <200604030340.k333ekJ24787@candle.pha.pa.us> Subject: Re: problem about maximum row size ? In-Reply-To: <17823.1142960697@sss.pgh.pa.us> To: Tom Lane Date: Sun, 2 Apr 2006 23:40:46 -0400 (EDT) CC: zhaoxin , pgsql-odbc@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.21 required=5 tests=[AWL=0.210] X-Spam-Score: 0.21 X-Spam-Level: X-Archive-Number: 200604/6 X-Sequence-Number: 7533 Tom Lane wrote: > zhaoxin writes: > > I have a question about maximum row size . > > In pgsql FAQ, I can find this description : > > ... > > Maximum size for a row? 1.6TB > > ... > > > does it mean 1600 text column in a table and 1G every column ? > > > but, when I test this case by psqlodbc, I got some error : > > This was posted in a fairly randomly chosen list, but I think it does > expose an error in the FAQ: you can't fit 1600 TOAST pointers into one > row and so the 1.6TB figure is overoptimistic. > > Since TOAST pointers are 20 bytes, a reasonable number for the maximum > number of large toasted fields is about 400, which would make the > correct entry for this question 400Gb. This could be improved by using > a non-default block size, so this should be listed as one of the limits > affected by block size. FAQ updated with new number, and mention that increasing block size quadruples it. -- Bruce Momjian http://candle.pha.pa.us + If your life is a hard drive, Christ can be your backup. +