pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Alex Hunsaker <badalex@gmail.com>
Cc: Greg Sabino Mullane <greg@endpoint.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Plperl trigger variables no longer global
Date: Thu, 05 May 2011 09:51:00 -0300
Message-ID: <1304599769-sup-6735@alvh.no-ip.org> (raw)
In-Reply-To: <BANLkTi=GdrMOdKQndgYq46chmfULMiEUuA@mail.gmail.com>
References: <20110503234033.GE2701@core.home>
	<BANLkTikJNiCM5Ek2TX4=AVT2LAR-3WKm7A@mail.gmail.com>
	<BANLkTi=GdrMOdKQndgYq46chmfULMiEUuA@mail.gmail.com>

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



view thread (9+ messages)  latest in thread

Message-ID: <1304599769-sup-6735@alvh.no-ip.org>
Permalink:  ../1304599769-sup-6735@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1304599769-sup-6735@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@commandprompt.com, badalex@gmail.com, greg@endpoint.com
  Subject: Re: Plperl trigger variables no longer global
  In-Reply-To: <1304599769-sup-6735@alvh.no-ip.org>
  References: <20110503234033.GE2701@core.home> <BANLkTikJNiCM5Ek2TX4=AVT2LAR-3WKm7A@mail.gmail.com> <BANLkTi=GdrMOdKQndgYq46chmfULMiEUuA@mail.gmail.com> <1304599769-sup-6735@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox