From: | "David E(dot) Wheeler" <david(at)kineticode(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Segfault from PL/Perl Returning vstring |
Date: | 2009-12-21 19:48:20 |
Message-ID: | 52F733C7-170B-4A53-B8F8-EC234F942D00@kineticode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 version back, 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 dependent on the input for the result.
Yeah, that's leftover from trying to troubleshoot another problem. More on that in a bit.
Best,
David
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2009-12-21 20:39:39 | Re: Segfault from PL/Perl Returning vstring |
Previous Message | Andrew Dunstan | 2009-12-21 19:46:17 | Re: Segfault from PL/Perl Returning vstring |