Re: Array, bytea and large objects

From: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>
To: d(dot)wall(at)computer(dot)org
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Array, bytea and large objects
Date: 2009-02-05 18:32:25
Message-ID: 92869e660902051032v58b3f06dl281d442e487c1899@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2009/2/5 David Wall <d(dot)wall(at)computer(dot)org>

>
>
>
>
>> Are the BYTEA fields stored in the same table as the rest of the data?
>
>
> yes - and the TOAST tables if it's larger than 1/3 of a page or so. search
> for TOAST details if you're interested.
>
> Hmm... So a page is 8192 bytes, and it leaves your regular table and goes
> to TOAST if the BYTEA is more than 2730 bytes. I thought it only went to
> TOAST when it exceed the page size, not just one-third of its size.
>

I wrote "or so" because I did not remember all details.
- check http://www.postgresql.org/docs/8.3/static/storage-toast.html
for 100% accurate explanation.

cheers
Filip

--
Filip Rembiałkowski
JID,mailto:filip(dot)rembialkowski(at)gmail(dot)com
http://filip.rembialkowski.net/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2009-02-05 18:55:35 Re: Pet Peeves?
Previous Message David Wall 2009-02-05 18:10:12 Re: Array, bytea and large objects