Nico <nicod@tiscalinet.it> writes:
> The function set_value has to be written in C language (plpgsql lang doesn't
> allow parameter passing for trigger functions).
Sure it does --- see TG_NARGS and TG_ARGV[] at
http://www.postgresql.org/devel-corner/docs/postgres/plpgsql-trigger.html
regards, tom lane