Re: information related to blobs

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: <avin_friends(at)yahoo(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: information related to blobs
Date: 2008-07-10 05:53:45
Message-ID: D960CB61B694CF459DCFB4B0128514C2024B0E70@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

aravind chandu wrote:
> Blobs stores large amount can you please tell me
> what is the limit i.e hw many kb of data can it store ? say
> 4000k like that.
>
> For suppose if a 4000kb data can be stored using
> blob and the data stored in blob is 3600k what about the
> remaining data? will it allocates all the 4000kb data or will
> it allocates only 3600kb data? Like char(100) it will
> allocates all 100 bytes in memory and varchar(100) which is
> variable memory?

There are actually two data types that provide BLOB functionality:

Large Objects, which can be up to 2GB in size
(http://www.postgresql.org/docs/current/static/lo-intro.html)
and bytea, which can be up to 1GB in size
(http://www.postgresql.org/docs/current/static/datatype-binary.html)

Read the documentation for the pros and cons of each.

Both will only use (about) as much disk space as the actual object needs.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2008-07-10 06:02:16 Re: Array as parameter for stored procedure
Previous Message Devrim GÜNDÜZ 2008-07-10 05:42:22 Re: manual Installation for thread safety