Re: BUG #1831: plperl gives error after reconnect.

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: BUG #1831: plperl gives error after reconnect.
Дата
Msg-id 20050820052957.GA48423@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: BUG #1831: plperl gives error after reconnect.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #1831: plperl gives error after reconnect.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Sat, Aug 20, 2005 at 01:14:02AM -0400, Tom Lane wrote:
> One thing I was kind of wondering about (this will betray the fact
> that I haven't really studied Perl since it was Perl 4) is what are
> the namespace issues for ::mksafefunc?  In particular, could the
> inner invocation of foo() be executing in some context that makes
> the original definition of mksafefunc inaccessible?  And why, if
> we are careful to declare mksafefunc with ::, don't we call it
> with :: too?

You might be on to something there.  I just changed line 683 in
plperl.c to the following:

    count = perl_call_pv((trusted ? "::mksafefunc" : "::mkunsafefunc"),

My test cases now succeed where they had been failing.  But if
that's the problem, why are your systems behaving differently?

--
Michael Fuhr

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1831: plperl gives error after reconnect.
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #1831: plperl gives error after reconnect.