Travis Bauer <trbauer@indiana.edu> writes:
> I have plperl compiled, installed, and generally working on
> Solaris. But when I try to execute the sqrt function, an error
> is issued:
> ERROR: creation of function failed: sqrt trapped by operation
> mask at (eval 10) line 4.
There's an "operation mask" inside plperl that defines which Perl
opcodes it thinks are safe to allow the user to execute. I think
the mask is set pretty conservatively at the moment ... definitely
too conservatively, if it rejects sqrt :-(. But no one's gotten
round to looking at the situation more closely to decide what's
safe and what's not. Feel free to look at the documentation for
Perl's Opcode module and propose a more reasonable mask.
regards, tom lane