Re: plpython crash on exception

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: plpython crash on exception
Дата
Msg-id 20071122211547.GM4903@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: plpython crash on exception  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: plpython crash on exception  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Alvaro Herrera escribió:

> One problem here is that 7.3 does not have appendStringInfoVA.  From 7.4
> onwards there is no problem.  Should I backport the code from 7.4?  (On
> a first try to do it I introduced a nasty bug, so it's not as easy as
> a cut'n paste).

No nasty bug anywhere -- just that I neglected a initStringInfo call
while manually backporting the patch.

However, in testing I noticed this problem:

alvherre=# select crashme(1);
ERROR:  plpython: Unable to create rexec.RExec instance
exceptions.RuntimeError: This code is not secure in Python 2.2 and 2.3

There doesn't seem to be a way to make it work.

What I'm going to do is commit the fix to just 7.4 onwards.

--
Alvaro Herrera                        http://www.advogato.org/person/alvherre
"We're here to devour each other alive"            (Hobbes)

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: plpython crash on exception
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: plpython crash on exception