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 9A4709DCAA1 for ; Tue, 21 Mar 2006 13:05:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 15849-09 for ; Tue, 21 Mar 2006 13:05:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 229779DCA30 for ; Tue, 21 Mar 2006 13:05:05 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k2LH4w2Z017824; Tue, 21 Mar 2006 12:04:59 -0500 (EST) To: zhaoxin cc: pgsql-odbc@postgresql.org, Bruce Momjian Subject: Re: problem about maximum row size ? In-reply-to: <441FAC1F.8040900@necas.nec.com.cn> References: <441FAC1F.8040900@necas.nec.com.cn> Comments: In-reply-to zhaoxin message dated "Tue, 21 Mar 2006 15:32:47 +0800" Date: Tue, 21 Mar 2006 12:04:57 -0500 Message-ID: <17823.1142960697@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.113 required=5 tests=[AWL=0.113] X-Spam-Score: 0.113 X-Spam-Level: X-Archive-Number: 200603/115 X-Sequence-Number: 7401 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. regards, tom lane