Re: BUG #5571: global hash %_SHARED is not declared as global in the new version - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #5571: global hash %_SHARED is not declared as global in the new version
Date
Msg-id 1280204319-sup-3982@alvh.no-ip.org
Whole thread Raw
In response to Re: BUG #5571: global hash %_SHARED is not declared as global in the new version  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-bugs
Excerpts from Alex Hunsaker's message of lun jul 26 12:55:34 -0400 2010:
> On Mon, Jul 26, 2010 at 03:58, mile <mile@avangardsolutions.com> wrote:
> > To reproduce this use the following function:
> >
> > create or replace function perl_shared() returns void as $$
> > use strict;
> > elog(INFO, $_SHARED{'stuff'});
> > $_SHARED{'stuff'} = '1';
> > for my $k (keys %_SHARED)
> > {
> >    elog(INFO, $k);
> > }
> > $$ language plperl;
>
> Great, Thanks!  The below patch fixes it for me.

Thanks, applied to 9.0 and HEAD.  I added a simple regression test too.

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: BUG #5572: Error Trying to connec from Crystal Reports to Sever PostgreSQL
Next
From: "Vimi"
Date:
Subject: BUG #5573: How can i add field inbetween in the table while creating