Re: plperl and sqrt.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plperl and sqrt.
Дата
Msg-id 22292.979780310@sss.pgh.pa.us
обсуждение исходный текст
Ответ на plperl and sqrt.  (Travis Bauer <trbauer@indiana.edu>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgres 7.0.3 core dumps
Следующее
От: Adam Haberlach
Дата:
Сообщение: More plpgsql fun! (deleting large object refs)