Trigger and function not on speaking terms

Поиск
Список
Период
Сортировка
От Jeff Boes
Тема Trigger and function not on speaking terms
Дата
Msg-id BjxPc.133622$vJ6.20511@cyclops.nntpserver.com
обсуждение исходный текст
Ответы Re: Trigger and function not on speaking terms  (Richard Poole <rp@guests.deus.net>)
Re: Trigger and function not on speaking terms  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: Trigger and function not on speaking terms  (Kevin Davis <davisk@spacecybernetics.com>)
Список pgsql-sql
Hmm, this is puzzling me:

create or replace function fn_foo(text) returns trigger as '
begin  # Do some stuff with $1
end;
' language 'plpgsql';

CREATE FUNCTION

create table bar (aaa text);

CREATE TABLE

create trigger trg_bar
after insert or update on bar
execute procedure fn_foo('string');

ERROR:  function fn_foo() does not exist

It would seem my trigger definition is trying to find fn_foo(), when I 
mean for it to call fn_foo(TEXT).

-- 
(Posted from an account used as a SPAM dump. If you really want to get
in touch with me, dump the 'jboes' and substitute 'mur'.)
________
Jeffery Boes <>< jboes@qtm.net


В списке pgsql-sql по дате отправления:

Предыдущее
От: Ray Aspeitia
Дата:
Сообщение: Query execution differences
Следующее
От: Richard Poole
Дата:
Сообщение: Re: Trigger and function not on speaking terms