way to pass NEW into function - Mailing list pgsql-hackers

From Mike Cianflone
Subject way to pass NEW into function
Date
Msg-id B9F49C7F90DF6C4B82991BFA8E9D547B17D1B7@BUFORD.littlefeet-inc.com
Whole thread Raw
Responses Re: way to pass NEW into function  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
    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



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: SOMAXCONN (was Re: Solaris source code)
Next
From: "John Moore"
Date:
Subject: Re: Production Backup and Recovery