Is it possible to trick pg/sql to allow passing of the NEW record
into a function? I've got a trigger that gets kicked off before an insert
and I need to call another function and pass that record in, but doing a
perform activate_event(NEW); /* my function is activate_event(OPAQUE) */
only spits out "ERROR: NEW used in non-rule query". Is there a way to trick
it into passing the NEW record into my function?
Thanks for any pointers,
Mike