Received: from Donald.bks ([203.145.133.16]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8E55c769221 for ; Fri, 14 Sep 2001 01:05:39 -0400 (EDT) (envelope-from bhuvansql@yahoo.com) Received: from Larry.bks (root@Larry.bks [200.2.1.10]) by Donald.bks (8.11.6/8.11.2) with ESMTP id f8E53nO03925; Fri, 14 Sep 2001 10:33:50 +0530 Received: from localhost (bhuvan@localhost) by Larry.bks (8.9.3/8.8.5) with ESMTP id KAA12268; Fri, 14 Sep 2001 10:29:57 +0530 X-Authentication-Warning: Larry.bks: bhuvan owned process doing -bs Date: Fri, 14 Sep 2001 10:29:57 +0530 (IST) From: Bhuvan A X-Sender: bhuvan@Larry.bks To: Kevin Way cc: pgsql-sql@postgresql.org Subject: Re: trigger trouble -- procedure not found In-Reply-To: <20010914042637.A65405@bean.overtone.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200109/70 X-Sequence-Number: 4716 On Sep 14, Kevin Way wrote: > I'm having trouble creating a trigger. First i'm creating a function, > add_to_search in PL/pgSQL. > > \df verifies the existance of this function: > smallint | add_to_search | text, text, text, integer > -- We can verify all the functions which wont return 'OPAQUE'. > but when I call: > > CREATE TRIGGER item_insert_search_add AFTER INSERT > ON item FOR EACH ROW > EXECUTE PROCEDURE add_to_search (name, description, reason, node_id); > > I get: > ERROR: CreateTrigger: function add_to_search() does not exist The function executed by a trigger should by default return a record. ie.. the return type should be 'OPAQUE'. Try the above.. Hope this will work. > > What am I missing here? It seems to me that I'm missing something very > simple, but I can't figure out what it is for the life of me. > > Kevin Way > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >