Re: Segfault from PL/Perl Returning vstring

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Segfault from PL/Perl Returning vstring
Дата
Msg-id 4B2FE17B.3000708@dunslane.net
обсуждение исходный текст
Ответ на Re: Segfault from PL/Perl Returning vstring  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers

Peter Eisentraut wrote:
> On mån, 2009-12-21 at 14:46 -0500, Andrew Dunstan wrote:
>   
>> BTW, this should arguably not be an immutable function. You could 
>> replace the perl library, so it's not solely dependent on the input
>> for 
>> the result.
>>     
>
> By this logic, no function could be immutable, because you could replace
> the C library or parts of the kernel.
>
>   

*shrug* Maybe, OTOH upgrading perl is not such an unusual operation, and 
doing so *will* affect this value. It's a bit hard to see why one would 
want the perl version to be immutable. It doesn't look like it would be 
much use in an index ....

I think people are generally safer not marking functions immutable 
unless they actually need them to be.

cheers

andrew




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Segfault from PL/Perl Returning vstring
Следующее
От: Tim Bunce
Дата:
Сообщение: Update ppport.h in plperl