Re: plpython fails its regression test

Поиск
Список
Период
Сортировка
От Andrew Bosma
Тема Re: plpython fails its regression test
Дата
Msg-id 1043994227.7277.79.camel@dendroica
обсуждение исходный текст
Ответ на plpython fails its regression test  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:

>In CVS tip, if you run "make installcheck" in src/pl/plpython, the test
>fails with a number of diffs between the expected and actual output.
>I'm not sure if plpython is broken, or if it's just that someone
>changed the behavior and didn't bother to update the test's expected
>files (the test files don't seem to have been maintained since they
>were first installed).

What version of python are you using?  I just ran "make installcheck"
using python 2.1 and the tests passed.  I know python 2.2 and later will
fail because the rexec module used to create the restricted execution
environment has been deprecated, and any attempt to use it results in
RuntimeErrors being thrown.

The new-style classes introduced in python 2.2 allow you to trivially
breakout of the restricted environment.  There are also known bugs in
the rexec bugs in python 2.1.  It's probably wise to not install
plpython as a trusted language, at least until the restricted
environment can be restored.

Andrew

-- 
Andrew Bosma <bosma@epigenomix.com>



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

Предыдущее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: [OpenFTS-general] Alpha version of contrib/tsearch is available for testing
Следующее
От: Elias Athanasopoulos
Дата:
Сообщение: cvs (7/2/2003) is broken?