Re: plperl & sort

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: plperl & sort
Date: 2008-11-05 17:54:10
Message-ID: 87skq6git9.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>>>> "nathan" == nathan wagner <nw(at)hydaspes(dot)if(dot)org> writes:

nathan> Completely untested speculation based on my knowledge of perl
nathan> and a bit of reading:

nathan> The reason you can't see $a and $b is that sort internally
nathan> sets these variables in the main package. That is, sort is
nathan> setting $main::a and $main::b, and when you run the plperl
nathan> code in the safe compartment, main:: isn't visible any more.

Nice theory, but completely wrong: sort creates $a and $b in the
current package, not in main::.

--
Andrew (irc:RhodiumToad)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2008-11-05 18:14:20 Re: plperl & sort
Previous Message Kev 2008-11-05 16:53:28 Re: BUG #4509: array_cat's null behaviour is inconsistent