Re: How to delete Large Object from Database?

Поиск
Список
Период
Сортировка
От Premsun Choltanwanich
Тема Re: How to delete Large Object from Database?
Дата
Msg-id 434B8F91.C5F7.004C.0@nsasia.co.th
обсуждение исходный текст
Ответ на Re: How to delete Large Object from Database?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to delete Large Object from Database?
Следующее
От: Frank Bax
Дата:
Сообщение: SEVEN cross joins?!?!?