From: | "Alex Hunsaker" <badalex(at)gmail(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Andrew Gierth" <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: plperl & sort |
Date: | 2008-11-05 18:37:34 |
Message-ID: | 34d269d40811051037x71a43353s46d16e49e00ef99e@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wed, Nov 5, 2008 at 11:14, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:
>> Nice theory, but completely wrong: sort creates $a and $b in the
>> current package, not in main::.
>
> Hmm ... so then why are we seeing a failure?
Because Safe runs in a different namespace altogether (part of why its
Safe). We build the sub under Safe but then execute it in the real
namespace. The patch I posted fixes this but Id like someone with
more knowledge of safe to look over it. From a quick cvs log it
*looked* like that was Andrew Dunstan which is why I cc'ed him. This
is not a Safe bug IMHO its our (ab)use of it that is causing the
problem. Of course if its only sort that gets affected maybe the cure
is worse than the disease...
From | Date | Subject | |
---|---|---|---|
Next Message | Alexey Bashtanov | 2008-11-05 21:06:06 | BUG #4513: VACUUM FULL fails with "out of memory" error |
Previous Message | Alex Hunsaker | 2008-11-05 18:28:50 | Re: plperl & sort |