Re: plpython tracebacks

Поиск
Список
Период
Сортировка
От P. Scott DeVos
Тема Re: plpython tracebacks
Дата
Msg-id 43FCF6DB.1000306@countrysidetechnology.com
обсуждение исходный текст
Ответ на Re: plpython tracebacks  ("P. Scott DeVos" <scott@countrysidetechnology.com>)
Список pgsql-patches

P. Scott DeVos wrote:
>
>

>
> Are you sure this works: "PyString_AsString(lno)"?  lno is a python
> integer object.  Maybe we want, "PyString_AsString(PyObject_Str(lno))"
>
Wait, this is not the way to do it because PyObject_Str returns a new
reference.  I think you have to assign PyObject_Str(lno) to another
variable so that you can decrement the reference on it.  Unless your
code works as it, in which case, never mind...

Scott

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

Предыдущее
От: "P. Scott DeVos"
Дата:
Сообщение: Re: plpython tracebacks
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Summary table trigger example race condition