Re: Potential reference miscounts and segfaults in plpython.c
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Potential reference miscounts and segfaults in plpython.c |
| Дата | |
| Msg-id | 1329843957.12726.3.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответ на | Re: Potential reference miscounts and segfaults in plpython.c (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Potential reference miscounts and segfaults in plpython.c
|
| Список | pgsql-hackers |
On sön, 2012-02-19 at 22:29 -0500, Tom Lane wrote:
> My only comment is whether elog(ERROR) is appropriate, ie, do we
> consider these to be internal errors that users will never see in
> practice? If there's a significant risk of the error being thrown in
> the field, it might be better to use ereport, to expose the message
> for translation.
I find the wording of the error messages a bit inappropriate. For
example,
list = PyList_New(length);
+ if (list == NULL)
+ elog(ERROR, "could not transform Python list to array");
The error is not about the transforming, it's about creating a new list.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера