| От | Peter Eisentraut |
|---|---|
| Тема | Re: Memory context in exception handler |
| Дата | |
| Msg-id | 200701142205.43063.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Re: Memory context in exception handler (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: > As near as I can tell, you're using CopyErrorData not because you > need an actual copy but just because elog.c doesn't export any other > API to let you see the current sqlerrorcode. Perhaps adding a > function to return the top stack entry's sqlerrorcode would be a > better API change? Yes, something like that would be good to have. At the moment, there are not a lot of users of this mechanism in our code, so I'm not in a hurry to change this (and I think that I want to rewrite the XML parsing code to do without the exceptions dance). -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера