pl/perl example in the doc no longer works in 9.1

Поиск
Список
Период
Сортировка
От Amit Khandekar
Тема pl/perl example in the doc no longer works in 9.1
Дата
Msg-id CACoZds2D+0h-5euAxfpd9gQmiiW_MW9uv250Woz0=EGO0szScQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: pl/perl example in the doc no longer works in 9.1  ("David E. Wheeler" <david@kineticode.com>)
Список pgsql-hackers
Hi,

An example in the PG documentation gives an error:

http://www.postgresql.org/docs/9.1/interactive/plperl-global.html

CREATE OR REPLACE FUNCTION myfuncs() RETURNS void AS $$   $_SHARED{myquote} = sub {       my $arg = shift;       $arg
=~s/(['\\])/\\$1/g;       return "'$arg'";   };
 
$$ LANGUAGE plperl;

SELECT myfuncs(); /* initializes the function */

ERROR:  PL/Perl function must return reference to hash or array
CONTEXT:  PL/Perl function "myfuncs"

Not sure if this is now an expected behaviour. Is it? Accordingly, I
can open this in pgsql-bugs or put this issue in pgsql-docs.


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [BUGS] *.sql contrib files contain unresolvable MODULE_PATHNAME
Следующее
От: Fujii Masao
Дата:
Сообщение: loss of transactions in streaming replication