As far as I am concerned, I think that lobs are
managed in postgres with oid.
Create your table like this :
CREATE TABLE table_of_lobs (
title varchar(100),
content_reference oid);
content_reference is a handler on lobs data
contained in specials postgres system tables called Toast.
Create a rule to automatically destroy LOB data
when you delete a tuple in table_of_lobs :
CREATE RULE del_table_of_lobs AS ON DELETE TO
table_of_lobs
DO SELECT lo_unlink(old.content) AS lo_unlink; Once you've created your table, use
lo_import/lo_export functions to import/export your LOB data in a pgsql session
(you must be super useer)
or use LOBS management functions available in libpq
in order to interface lobs data management in your favorite program
language.
Regards,
Luc Jouneau
|
- [ADMIN] Blob Data type in postgres ? Somasekhar Bangalore
- Re: [ADMIN] Blob Data type in postgres ? Andreas Schmitz
- Jouneau Luc