Re: How to delete Large Object from Database?

From: "Premsun Choltanwanich" <Premsun(at)nsasia(dot)co(dot)th>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Richard Huxton" <dev(at)archonet(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How to delete Large Object from Database?
Date: 2005-10-11 03:10:26
Message-ID: 434B8F91.C5F7.004C.0@nsasia.co.th
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us> 11-Oct-05 10:00:53 am >>>
"Premsun Choltanwanich" <Premsun(at)nsasia(dot)co(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Vikas J 2005-10-11 07:20:49 Problem -Postgre sql
Previous Message Tom Lane 2005-10-11 03:00:53 Re: How to delete Large Object from Database?