Re: Segfault from PL/Perl Returning vstring

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Segfault from PL/Perl Returning vstring
Дата
Msg-id 60353817-8393-45B5-B6EC-0D7D1BC1A19D@kineticode.com
обсуждение исходный текст
Ответ на Re: Segfault from PL/Perl Returning vstring  (Tim Bunce <Tim.Bunce@pobox.com>)
Ответы Re: Segfault from PL/Perl Returning vstring  (David E. Wheeler <david@kineticode.com>)
Список pgsql-hackers
On Dec 21, 2009, at 2:13 PM, Tim Bunce wrote:

> You're using 5.8.8. In 5.10.0 $^V was changed to be an object.
>
> I'm working in that area. I'll look into it.

While you're at it, I have a new problem:
   CREATE OR REPLACE FUNCTION wtf(        expression text   ) RETURNS text LANGUAGE plperl AS $$       return
"{$_[0]}";  $$; 
   try=# select wtf('foo');    wtf   -----    {   (1 row)

Note how I don't even get the closing "}". This does not happen with PL/PerlU. The denizens of #postgresql think that
there'ssome sort of issue with Safe and Encode or Encode::Alias (the latter `require`s Encode in two if its methods).
Canyou replicate it? It's driving me absolutely batshit. I'm using Perl 5.10.2, Safe 2.20, and Encode 2.39. 

Thanks,

David




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

Предыдущее
От: Tim Bunce
Дата:
Сообщение: Re: Segfault from PL/Perl Returning vstring
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Possible patch for better index name choosing