errcontext support in PL/Perl

Поиск
Список
Период
Сортировка
От Alexey Klyukin
Тема errcontext support in PL/Perl
Дата
Msg-id 8EED7D1A-9E12-4081-A0A7-B3EC7011854B@commandprompt.com
обсуждение исходный текст
Ответы Re: errcontext support in PL/Perl  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Hi,

While trying to build a custom error reporting function for one of our
clients we came across the fact that PL/Perl doesn't set errcontext
that we relied on to get the traceback of running functions. Exactly
the same problem with PL/Python was fixed recently by Peter Eisentraut
(http://archives.postgresql.org/pgsql-committers/2009-07/msg00168.php).

Attached is a patch (HEAD) that sets errcontext with PL/Perl function
name, making a distinction between compilation and execution stages,
fixes error messages where function name was already included in the
message itself and updates regression tests. I'll appreciate any
suggestions on how to improve it.

--
Alexey Klyukin       http://www.CommandPrompt.com
The PostgreSQL Company - Command Prompt, Inc.


Вложения

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

Предыдущее
От: Joshua Brindle
Дата:
Сообщение: Re: [PATCH] SE-PgSQL/tiny rev.2193
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Sampling profiler updated