| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Alex Hunsaker <badalex(at)gmail(dot)com> |
| Cc: | Greg Sabino Mullane <greg(at)endpoint(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org> |
| Subject: | Re: Plperl trigger variables no longer global |
| Date: | 2011-05-05 12:51:00 |
| Message-ID: | 1304599769-sup-6735@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Page | 2011-05-05 12:59:15 | Re: BUG #6006: Will not install |
| Previous Message | Jiri Sadek | 2011-05-05 09:34:42 | psql command line client behaviour |