Re: trigger trouble -- procedure not found

From: Bhuvan A <bhuvansql(at)yahoo(dot)com>
To: Kevin Way <kevin(dot)way(at)overtone(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: trigger trouble -- procedure not found
Date: 2001-09-14 04:59:57
Message-ID: Pine.LNX.4.20.0109141027001.11755-100000@Larry.bks
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)postgresql(dot)org
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-09-14 05:16:26 Re: trigger trouble -- procedure not found
Previous Message Kevin Way 2001-09-14 04:26:37 trigger trouble -- procedure not found