Re: Segfault from PL/Perl Returning vstring - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Segfault from PL/Perl Returning vstring
Date
Msg-id 52F733C7-170B-4A53-B8F8-EC234F942D00@kineticode.com
Whole thread Raw
In response to Re: Segfault from PL/Perl Returning vstring  (Andrew Dunstan <andrew@dunslane.net>)
List 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 by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Segfault from PL/Perl Returning vstring
Next
From: Peter Eisentraut
Date:
Subject: Re: Segfault from PL/Perl Returning vstring