Re: How to delete Large Object from Database? - Mailing list pgsql-general

From Premsun Choltanwanich
Subject Re: How to delete Large Object from Database?
Date
Msg-id 434A8F53.C5F7.004C.0@nsasia.co.th
Whole thread Raw
In response to Re: How to delete Large Object from Database?  (Douglas McNaught <doug@mcnaught.org>)
Responses Re: How to delete Large Object from Database?  (Douglas McNaught <doug@mcnaught.org>)
List pgsql-general
The lib I use is call lo_in and lo_out for manage BLOB.
I understand that lo_unlink be related with lo_import and lo_export so I don't think that it work.
 

>>> Douglas McNaught <doug@mcnaught.org> 07-Oct-05 20:13:36 pm >>>
Moises Alberto Lindo Gutarra <mlindo@gmail.com> writes:

> try:   delete from pg_catalog.pg_largeobject;
> from your database.

Umm, the standard way to do this is lo_unlink().  You can put an
ON DELETE trigger on your referencing table that calls this function.

-Doug

pgsql-general by date:

Previous
From: Hannes Dorbath
Date:
Subject: Re: INSERT OR UPDATE?
Next
From: "Premsun Choltanwanich"
Date:
Subject: Re: How to delete Large Object from Database?