Segfault from PL/Perl Returning vstring

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Segfault from PL/Perl Returning vstring
Дата
Msg-id 3710576A-52D4-464A-AF12-93E570B35E55@kineticode.com
обсуждение исходный текст
Ответы Re: Segfault from PL/Perl Returning vstring  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
At least I think it's a segfault. This function returns a vstring:

CREATE OR REPLACE FUNCTION wtf(
) RETURNS text LANGUAGE plperl IMMUTABLE STRICT AS $X$   return $^V;
$X$;

Here's what happens when I call it:

try=# select wtf();
server closed the connection unexpectedlyThis probably means the server terminated abnormallybefore or while processing
therequest. 
The connection to the server was lost. Attempting reset: Failed.
!>

So I think that it doesn't know what to do with vstrings. They should probably never be returned (they're mostly
deprecated),but if they are, they should be cast to text, I think. 

Best,

David

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Streaming replication and non-blocking I/O
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Segfault from PL/Perl Returning vstring