Re: Trigger cant find function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger cant find function
Дата
Msg-id 2622.974217939@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trigger cant find function  ("Graham Vickrage" <graham@digitalplanit.com>)
Список 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 по дате отправления:

Предыдущее
От: "Graham Vickrage"
Дата:
Сообщение: Trigger cant find function
Следующее
От: Thomas Swan
Дата:
Сообщение: Re: Using a postgres table to maintain unique id?