errcontext from PL/pgSQL (was message style for errcontext)

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема errcontext from PL/pgSQL (was message style for errcontext)
Дата
Msg-id 8B70FC25-C290-455A-BA5D-4C2A066F4D99@kineticode.com
обсуждение исходный текст
Ответ на message style for errcontext  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On May 17, 2010, at 11:20 AM, Peter Eisentraut wrote:

> We have in 9.0 plperl.c
>
> errcontext("while executing PostgreSQL::InServer::SPI::bootstrap")));
> errcontext("while parsing Perl initialization")));
> errcontext("while running Perl initialization")));
> errcontext("While executing PLC_TRUSTED.")));
> errcontext("While executing utf8fix.")));
> errcontext("While executing plperl.on_plperl_init.")));
> errcontext("while executing plperl.on_plperlu_init")));
>
> Could we agree on a capitalization and punctuation scheme?

Oh, this reminds me. Is there a way to get at errcontext data from PL/pgSQL? I'm assuming there's something to
complementSQLSTATE and SQLERRM, yes? 

Thanks,

David




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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: message style for errcontext
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: Keepalive for max_standby_delay