Re: Segfault from PL/Perl Returning vstring

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Segfault from PL/Perl Returning vstring
Дата
Msg-id 52F733C7-170B-4A53-B8F8-EC234F942D00@kineticode.com
обсуждение исходный текст
Ответ на Re: Segfault from PL/Perl Returning vstring  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Dec 21, 2009, at 11:46 AM, Andrew Dunstan wrote:

> It's not doing that for me.

Odd.

> The plperl code has no way at all of knowing that the bytes you are returning come from $^V. If you really want the
versionback, do what the perl docs tell you and sprintf the value: 

It works fine if I return `"$^V"`.

> BTW, this should arguably not be an immutable function. You could replace the perl library, so it's not solely
dependenton the input for the result. 

Yeah, that's leftover from trying to troubleshoot another problem. More on that in a bit.

Best,

David




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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Segfault from PL/Perl Returning vstring
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Segfault from PL/Perl Returning vstring