Re: pl/perl example in the doc no longer works in 9.1 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pl/perl example in the doc no longer works in 9.1
Date
Msg-id 1691.1318543545@sss.pgh.pa.us
Whole thread Raw
In response to Re: pl/perl example in the doc no longer works in 9.1  (Alex Hunsaker <badalex@gmail.com>)
Responses Re: pl/perl example in the doc no longer works in 9.1  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-hackers
Alex Hunsaker <badalex@gmail.com> writes:
> This gets rid of of most of the if/else chain and the has_retval crap
> in plperl_handl_func(). Instead we let plperl_sv_to_datum() do most of
> the lifting. It also now handles VOIDOID and checks that the request
> result oid can be converted from the perl structure. For example if
> you passed in a hashref with a result oid that was not an rowtype it
> will error out with "PL/Perl cannot convert hash to non rowtype %s".
> Arrays behave similarly.

Applied with some further hacking of my own to clean up memory leaks
and grotty coding.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alexey Klyukin
Date:
Subject: Re: pl/perl example in the doc no longer works in 9.1
Next
From: Tom Lane
Date:
Subject: Re: Additional supplied modules