"Florian G. Pflug" <fgp(at)phlo(dot)org> writes:
> This is what I tried:
> CREATE OR REPLACE FUNCTION functions.t_insert_deny(v_message text)
> RETURNS "trigger" AS $$
There should probably be a specific error check telling you that a
trigger function can't take any explicit arguments. But there isn't
(and it's too late for 8.0 because we froze error message strings
long since :-().
The CREATE TRIGGER parameter comes to the trigger function via TGARGS,
not as a regular parameter.
regards, tom lane