Manipulating Large Object datatype in Postgresql - Mailing list pgsql-general

From Sharmila Jothirajah
Subject Manipulating Large Object datatype in Postgresql
Date
Msg-id 841070.4468.qm@web110701.mail.gq1.yahoo.com
Whole thread Raw
List pgsql-general
Hi,
We have tables with data type CLOb and BLOBs (in oracle). This needs o be migrated to Postgresql. What data types can be used for this. I've done some resaerch/search in this and found that (correct me if Im wrong)
1. For CLObs the equivalent are TEXT and OID(lob).
But streaming(thro' jdbc) is possible only with oids
2. For Blobs the equivalent are oid(lob) and bytea (again straeming is possible only with oid)

Questions:
1. Which is the better approach for CLOb/BLOB? I need straeming possible since the data are pretty big
2. How is UPDATE/DELETE handled with the lob datatype?

Would it update the referenced data?  Or would it create a new lob and update the pointer, keeping the old data somewhere?  Or would that depend on our implementation?  Would it make a difference if the new value was null?

Thanks


pgsql-general by date:

Previous
From: Keaton Adams
Date:
Subject: Cache lookup failed for relation message in PG 8.3.7
Next
From: Devrim GÜNDÜZ
Date:
Subject: Re: [Pgsqlrpms-hackers] weird bug in rebuilding RPMs