[HACKERS] Consistently catch errors from Python _New() functions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема [HACKERS] Consistently catch errors from Python _New() functions
Дата
Msg-id 72ea0318-3d5b-e46f-d5cc-a030567155ec@2ndquadrant.com
обсуждение исходный текст
Ответы Re: [HACKERS] Consistently catch errors from Python _New() functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
While reviewing some unrelated code, I noticed that we are handling
error conditions from Python API functions such as PyList_New() and
PyDict_New() in pretty random ways or not at all.  Here is a patch to
fix that.

Arguably, this is a bug fix, but I'm not sure whether it's worth
meddling with this in the back branches.  Maybe only the places where
the errors are not caught at all should be fixed there.  Comments welcome.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Arthur Zakirov
Дата:
Сообщение: Re: [HACKERS] [PATCH] Generic type subscripting
Следующее
От: Peter Eisentraut
Дата:
Сообщение: [HACKERS] postgres_fdw: Add support for INSERT OVERRIDING clause