Re: plpython fails its regression test

From: Andrew Bosma <bosma(at)epigenomix(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: plpython fails its regression test
Date: 2003-01-31 06:23:47
Message-ID: 1043994227.7277.79.camel@dendroica
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)epigenomix(dot)com>

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2003-01-31 06:27:15 Re: [mail] Re: Windows Build System
Previous Message Bruce Momjian 2003-01-31 06:03:55 Re: Request for qualified column names