Re: BUG #5571: global hash %_SHARED is not declared as global in the new version

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Alex Hunsaker <badalex(at)gmail(dot)com>
Cc: mile <mile(at)avangardsolutions(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5571: global hash %_SHARED is not declared as global in the new version
Date: 2010-07-27 04:19:53
Message-ID: 1280204319-sup-3982@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)avangardsolutions(dot)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.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Vimi 2010-07-27 07:34:56 BUG #5573: How can i add field inbetween in the table while creating
Previous Message Kevin Grittner 2010-07-26 17:08:15 Re: BUG #5572: Error Trying to connec from Crystal Reports to Sever PostgreSQL