Skip site navigation (1) Skip section navigation (2)

Re: Maximum len of data fit into the tuple

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Denis Perchine <dyp(at)perchine(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Maximum len of data fit into the tuple
Date: 2000-06-26 03:26:23
Message-ID: 11874.961989983@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Denis Perchine <dyp(at)perchine(dot)com> writes:
> If I will assume that oid == int4 I will have 4 * 2 + 4 (size of
> vl_len in bytea) = 12.  Plus 36 bytes of header (as noted in FAQ). It
> will be 48 bytes... But I still get error that tuple is out too
> big... And that my size is 8188, but should be 8140.

> It would be great if someone will clarify the way I should do such
> calculations.

You forgot the per-page overhead.

Offhand 36 seems too small for the per-tuple overhead, anyway, but I'm
too lazy to count bytes in include/access/htup.h right now...

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2000-06-26 03:31:39
Subject: Re: [HACKERS] Re: Call for port testing on fmgr changes -- Results!
Previous:From: Chris BitmeadDate: 2000-06-26 03:24:56
Subject: Re: CLASSOID patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group