Re: Plperl trigger variables no longer global - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: Plperl trigger variables no longer global
Date
Msg-id 1304599769-sup-6735@alvh.no-ip.org
Whole thread Raw
In response to Re: Plperl trigger variables no longer global  (Alex Hunsaker <badalex@gmail.com>)
Responses Re: Plperl trigger variables no longer global
List pgsql-bugs
Excerpts from Alex Hunsaker's message of mié may 04 23:53:34 -0300 2011:

> After playing with it a bit more I see 2 clear options:
> 1) make $_TD global like %_SHARED. This should not cause any problems
> as we make $_TD private via local() before each trigger call. Also pre
> 9.1 non trigger functions could still access and check the definedness
> of $_TD so if someone was relying on that (for whatever unknown
> reason) that will work again.

This is strange.  Are you saying that there's no decent way to make a
variable global in C code?  (In other words, the Perl code to create the
global var is indecently implemented)

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-bugs by date:

Previous
From: Jiri Sadek
Date:
Subject: psql command line client behaviour
Next
From: Dave Page
Date:
Subject: Re: BUG #6006: Will not install