pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: zhaoxin <zhaox@necas.nec.com.cn>
Cc: pgsql-odbc@postgresql.org
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Subject: Re: problem about maximum row size ?
Date: Tue, 21 Mar 2006 12:04:57 -0500
Message-ID: <17823.1142960697@sss.pgh.pa.us> (raw)
In-Reply-To: <441FAC1F.8040900@necas.nec.com.cn>
References: <441FAC1F.8040900@necas.nec.com.cn>

zhaoxin <zhaox@necas.nec.com.cn> 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



view thread (7+ messages)  latest in thread

Message-ID: <17823.1142960697@sss.pgh.pa.us>
Permalink:  ../17823.1142960697@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17823.1142960697@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zhaox@necas.nec.com.cn, pgman@candle.pha.pa.us
  Subject: Re: problem about maximum row size ?
  In-Reply-To: <17823.1142960697@sss.pgh.pa.us>
  References: <441FAC1F.8040900@necas.nec.com.cn> <17823.1142960697@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox