Re: plperl and sqrt. - Mailing list pgsql-general

From Tom Lane
Subject Re: plperl and sqrt.
Date
Msg-id 22292.979780310@sss.pgh.pa.us
Whole thread Raw
In response to plperl and sqrt.  (Travis Bauer <trbauer@indiana.edu>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgres 7.0.3 core dumps
Next
From: Adam Haberlach
Date:
Subject: More plpgsql fun! (deleting large object refs)