pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Premsun Choltanwanich <Premsun@nsasia.co.th>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Richard Huxton <dev@archonet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to delete Large Object from Database?
Date: Tue, 11 Oct 2005 10:10:26 +0700
Message-ID: <434B8F91.C5F7.004C.0@nsasia.co.th> (raw)
In-Reply-To: <8632.1128999653@sss.pgh.pa.us>
References: <43465BAA.C5F7.004C.0@nsasia.co.th>
	<434623FD.7000408@archonet.com>
	<434A8F85.C5F7.004C.0@nsasia.co.th>
	<434A3D2F.90907@archonet.com>
	<434B81B8.C5F7.004C.0@nsasia.co.th>
	<434B81B8.C5F7.004C.0@nsasia.co.th>
	<8632.1128999653@sss.pgh.pa.us>

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

view thread (8+ messages)

Message-ID: <434B8F91.C5F7.004C.0@nsasia.co.th>
Permalink:  ../434B8F91.C5F7.004C.0@nsasia.co.th/
Also on:    postgresql.org/message-id/434B8F91.C5F7.004C.0@nsasia.co.th

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: Premsun@nsasia.co.th, tgl@sss.pgh.pa.us, dev@archonet.com
  Subject: Re: How to delete Large Object from Database?
  In-Reply-To: <434B8F91.C5F7.004C.0@nsasia.co.th>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox