Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-22 Thread Alex Hunsaker
On Mon, Aug 20, 2012 at 10:14 AM, Alvaro Herrera alvhe...@2ndquadrant.comwrote: Excerpts from Alex Hunsaker's message of lun ago 20 12:03:11 -0400 2012: On Sun, Aug 19, 2012 at 2:26 PM, Joel Jacobson j...@trustly.com wrote: After upgrading from 8.4 to 9.1, one of my plperl functions

Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-22 Thread Tom Lane
Alex Hunsaker bada...@gmail.com writes: I can reproduce the failure with 5.14.2 Me too, however it works for me with 5.14.1, looking more like a strange perl bug. Curiously, I do *not* see the bug on my Fedora 16 machine, running perl-5.14.2-198.fc16.x86_64 I wondered if Fedora is carrying a

Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-22 Thread Andrew Dunstan
On 08/22/2012 11:08 PM, Tom Lane wrote: Alex Hunsaker bada...@gmail.com writes: I can reproduce the failure with 5.14.2 Me too, however it works for me with 5.14.1, looking more like a strange perl bug. Curiously, I do *not* see the bug on my Fedora 16 machine, running

Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-22 Thread Tom Lane
Andrew Dunstan and...@dunslane.net writes: On 08/22/2012 11:08 PM, Tom Lane wrote: Curiously, I do *not* see the bug on my Fedora 16 machine, running perl-5.14.2-198.fc16.x86_64 Possibly we need to look at the output of perl -V to see if there's a difference. Mine sez Summary of my perl5

Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-21 Thread Kaare Rasmussen
On 2012-08-20 18:36, Tom Lane wrote: Alvaro Herreraalvhe...@2ndquadrant.com writes: Excerpts from Alex Hunsaker's message of lun ago 20 12:03:11 -0400 2012: Hrm seems to work for me. What version of perl is this? $ perl -V Summary of my perl5 (revision 5 version 16 subversion 0)

Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-20 Thread Alex Hunsaker
On Sun, Aug 19, 2012 at 2:26 PM, Joel Jacobson j...@trustly.com wrote: After upgrading from 8.4 to 9.1, one of my plperl functions stopped working properly. For some reason, when matching a string using a regex, the $1 variable cannot be returned directly using return_next() but must be set

Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-20 Thread Alvaro Herrera
Excerpts from Alex Hunsaker's message of lun ago 20 12:03:11 -0400 2012: On Sun, Aug 19, 2012 at 2:26 PM, Joel Jacobson j...@trustly.com wrote: After upgrading from 8.4 to 9.1, one of my plperl functions stopped working properly. For some reason, when matching a string using a regex,

Re: [HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-20 Thread Tom Lane
Alvaro Herrera alvhe...@2ndquadrant.com writes: Excerpts from Alex Hunsaker's message of lun ago 20 12:03:11 -0400 2012: Hrm seems to work for me. What version of perl is this? $ perl -V Summary of my perl5 (revision 5 version 16 subversion 0) configuration: I can reproduce the failure with

[HACKERS] Unexpected plperl difference between 8.4 and 9.1

2012-08-19 Thread Joel Jacobson
After upgrading from 8.4 to 9.1, one of my plperl functions stopped working properly. For some reason, when matching a string using a regex, the $1 variable cannot be returned directly using return_next() but must be set to a variable first. If returned directly, it appears to be cached in some