Re: plperl & sort

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: plperl & sort
Дата
Msg-id 87skq6git9.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на plperl & sort  (Jeff <threshar@torgo.978.org>)
Ответы Re: plperl & sort  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: plperl & sort  ("Alex Hunsaker" <badalex@gmail.com>)
Список pgsql-bugs
>>>>> "nathan" == nathan wagner <nw@hydaspes.if.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)

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4512: PostgreSQL crash on update command
Следующее
От: Tom Lane
Дата:
Сообщение: Re: plperl & sort