Re: Plperl trigger variables no longer global

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Plperl trigger variables no longer global
Дата
Msg-id 1304599769-sup-6735@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Plperl trigger variables no longer global  (Alex Hunsaker <badalex@gmail.com>)
Ответы Re: Plperl trigger variables no longer global
Список 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 по дате отправления:

Предыдущее
От: Jiri Sadek
Дата:
Сообщение: psql command line client behaviour
Следующее
От: Dave Page
Дата:
Сообщение: Re: BUG #6006: Will not install