Re: [GENERAL] bytea size limit?

From: Kenneth Marshall <ktm(at)rice(dot)edu>
To: Grzegorz Ja??kiewicz <gryzman(at)gmail(dot)com>
Cc: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>, pgsql-general(at)postgresql(dot)org, admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [GENERAL] bytea size limit?
Date: 2009-01-21 14:06:23
Message-ID: 20090121140623.GG14570@it.is.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Wed, Jan 21, 2009 at 01:55:28PM +0000, Grzegorz Ja??kiewicz wrote:
> there's no real limit (its size is described with 32bit number, and
> that's the only limitation here).
> But you need to be aware, that content is sent over at once, so memory
> is the limit in your case.
>
> http://www.postgresql.org/docs/8.3/static/datatype-binary.html
>
> For such large objects, it might be actually better to store them
> separate as files, and just store file name.
>

The TOAST implementation however only allows 30-bits for the
size of the TOAST entry which caps the size at 2^30 or 1GB. I
agree that he could very well be limited also by the memory on
his system.

Cheers,
Ken

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-01-21 14:09:01 Re: [GENERAL] bytea size limit?
Previous Message Grzegorz Jaśkiewicz 2009-01-21 13:55:28 Re: [GENERAL] bytea size limit?

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-01-21 14:09:01 Re: [GENERAL] bytea size limit?
Previous Message Grzegorz Jaśkiewicz 2009-01-21 13:55:28 Re: [GENERAL] bytea size limit?