Re: proposal: use errcontext for custom exception too

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: proposal: use errcontext for custom exception too
Дата
Msg-id CA+TgmoaxxWKCGNWWDTA_t+fWP8+A391oz-4kBUNGJZJrvcu4ZQ@mail.gmail.com
обсуждение исходный текст
Ответ на proposal: use errcontext for custom exception too  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: use errcontext for custom exception too  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: proposal: use errcontext for custom exception too  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Nov 24, 2011 at 12:30 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> There are small issue in PL/pgSQL and custom exceptions. Custom
> exception doesn't set a CONTEXT field. I propose change this behave
> for WARNING or EXCEPTION level. The goal is same behave for custom
> exception and builtin exception and it can help to identify a RAISE
> statement that is responsible to exception.

That seems completely arbitrary.  I think we discussed before
providing an option to allow the user to control this, which seems
better than implementing some hardcoded rule that may or may not be
what a given user wants.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: logging in high performance systems.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64