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

2012-08-22 Thread Tom Lane
Andrew Dunstan 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 (revision 5 v

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 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

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

2012-08-22 Thread Tom Lane
Alex Hunsaker 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 patch that fi

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 wrote: > 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 wrote: > > > > > After upgrading from 8.4 to 9.1, one of my plperl functions stopped > > > working properly. > > I

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 Herrera 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 fa

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

2012-08-20 Thread Tom Lane
Alvaro Herrera 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 5.14.2 Smells li

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 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 va

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 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 to a varia

[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 st