Re: pl/python tracebacks

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pl/python tracebacks
Дата
Msg-id 1298553001.4783.7.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на pl/python tracebacks  (Jan Urbański <wulczer@wulczer.org>)
Ответы Re: pl/python tracebacks  (Jan Urbański <wulczer@wulczer.org>)
Список pgsql-hackers
On tor, 2010-12-23 at 14:56 +0100, Jan Urbański wrote:
> For errors originating from Python exceptions add the traceback as the
> message detail. The patch tries to mimick Python's traceback.py module
> behaviour as close as possible, icluding interleaving stack frames
> with source code lines in the detail message. Any Python developer
> should instantly recognize these kind of error reporting, it looks
> almost the same as an error in the interactive Python shell.

I think the traceback should go into the CONTEXT part of the error.  The
context message that's already there is now redundant with the
traceback.

You could even call errcontext() multiple times to build up the
traceback, but maybe that's not necessary.




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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Sync Rep v17
Следующее
От: Shigeru HANADA
Дата:
Сообщение: Re: PostgreSQL FDW update