Re: Trigger cant find function - Mailing list pgsql-sql

From Tom Lane
Subject Re: Trigger cant find function
Date
Msg-id 2622.974217939@sss.pgh.pa.us
Whole thread Raw
In response to Trigger cant find function  ("Graham Vickrage" <graham@digitalplanit.com>)
List pgsql-sql
"Graham Vickrage" <graham@digitalplanit.com> writes:
> ERROR:  CreateTrigger: function get_prod_cost_price() does not exist
> It is clear that it does exist so why does the trigger creation code not
> find it?

Because the code is looking for a function of no arguments, which yours
is not.

The method for dealing with arguments passed to triggers is, um, arcane
--- I think you look in an implicitly declared array named TGARG, or
something like that.  You don't receive them as normal function
arguments, anyway.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Graham Vickrage"
Date:
Subject: Trigger cant find function
Next
From: Thomas Swan
Date:
Subject: Re: Using a postgres table to maintain unique id?