Re: large object support in PostGres 7.4 - Mailing list pgsql-sql

From Volkan YAZICI
Subject Re: large object support in PostGres 7.4
Date
Msg-id 7104a737050606234156b4eced@mail.gmail.com
Whole thread Raw
In response to large object support in PostGres 7.4  (Vadivel Subramaniam <vadivel.subramaniam@flextronicssoftware.com>)
List pgsql-sql
Hi,

On 6/7/05, Vadivel Subramaniam
<vadivel.subramaniam@flextronicssoftware.com> wrote:
> My doubt is, do these API's operate on character data?   i.e., My table
> schema is like this
>
> table (name varchar, script varchar).  I have to store a large data(in
> character form) in the script column (upto 3 MB).
>
> As of my understanding the above mentioned API's work on the OID field.
> i.e,.  table(name varchar, script oid).  Is that correct?

Yep. Large Objects are stored (and distributed between rows) in a
specific table: `pg_largeobject'. You can use these lo records by
referencing to their OIDs. Furthermore, you cannot (also shouldn't)
reach data on pg_largeobject with another function/routine out of
supplied lo_... functions by libpq.

> Please clarify this if anyone has already used this large object APIs and
> specify if this has any limitation on the size?

Yes, there's a limitation about 'em. (2GB) For more information please see:
http://www.postgresql.org/docs/7.4/interactive/largeobjects.html

Regards.


pgsql-sql by date:

Previous
From: Vadivel Subramaniam
Date:
Subject: large object support in PostGres 7.4
Next
From: Kenneth Gonsalves
Date:
Subject: Re: preventing deletion of a row