Re: PG 8.1beta3 out soon - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: PG 8.1beta3 out soon
Date
Msg-id caf12df9a1ef1b7e5a8eb03f15d4e4d1@biglumber.com
Whole thread Raw
In response to Re: PG 8.1beta3 out soon  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: PG 8.1beta3 out soon
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message


> I don't think it's really a bug - it's a well known perl effect that has
> caught many people over the years, especially unwary users of
> Apache::Registry who fail to recognise that their scripts are being
> wrapped inside an anonymous subroutine.

Ah, ok, so it's a documentation bug! :)

> My take: we should document this better, but it ain't broke so it don't
> need fixing, although I would not object strenuously to changing the
> behaviour of $_TD.

Hmm...what if we did this?:

Index: plperl.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/pl/plperl/plperl.c,v
retrieving revision 1.92
diff -r1.92 plperl.c
671c671
<       XPUSHs(sv_2mortal(newSVpv("my $_TD=$_[0]; shift;", 0)));
---
>       XPUSHs(sv_2mortal(newSVpv("our $_TD=$_[0]; shift;", 0)));

--
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200510110838
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iD8DBQFDS7J2vJuQZxSWSsgRAt7XAKC8D7HohA27CnaD7SVLrdKi80K49wCeI+o6
Tg9r3CSUeIV4872xuhZ0WBA=
=JRAX
-----END PGP SIGNATURE-----




pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Spinlocks and CPU Architectures
Next
From: Andrew Dunstan
Date:
Subject: Re: PG 8.1beta3 out soon