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

From Premsun Choltanwanich
Subject Re: How to delete Large Object from Database?
Date
Msg-id 434B8F91.C5F7.004C.0@nsasia.co.th
Whole thread Raw
In response to Re: How to delete Large Object from Database?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Sorry that I forgot to sent you trigger on my database.
 
CREATE OR REPLACE FUNCTION lo_manage()
  RETURNS "trigger" AS
'$libdir/lo', 'lo_manage'
  LANGUAGE 'c' VOLATILE;
ALTER FUNCTION lo_manage() OWNER TO postgres;
 


>>> Tom Lane <tgl@sss.pgh.pa.us> 11-Oct-05 10:00:53 am >>>
"Premsun Choltanwanich" <Premsun@nsasia.co.th> writes:
> The code that show below is refered to table and function that I use for =
> kept BLOB (LO).

> CREATE TABLE t_data_pic
> (
>   "sysid" bigserial NOT NULL,
>   data_sysid int8 NOT NULL,
>   data_pic lo,
>   CONSTRAINT t_data_pic_pkey PRIMARY KEY ("sysid")
> )
> WITH OIDS;
> ALTER TABLE t_data_pic OWNER TO admin;

Why am I not seeing any trigger attached to this table?  That lo_manage
trigger is the useful part of contrib/lo --- the separate data type is
mere window dressing.

regards, tom lane

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to delete Large Object from Database?
Next
From: Frank Bax
Date:
Subject: SEVEN cross joins?!?!?