Re: Getting more detail in plpython error messages

Поиск
Список
Период
Сортировка
От Jeff Ross
Тема Re: Getting more detail in plpython error messages
Дата
Msg-id ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net
обсуждение исходный текст
Ответ на Re: Getting more detail in plpython error messages  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 3/7/22 11:06 AM, Tom Lane wrote:
> Jeff Ross <jross@openvistas.net> writes:
>> Is there a way to get the DETAIL part as well?
> It's not very well documented AFAICS, but a SPIError object has a
> "detail" attribute, so "e.detail" should help you.  It looks like
> you might prefer to print "e.spidata", which seems to contain all
> the available fields.
>
>             regards, tom lane
>
>
Thank you, Tom!  As always, that is exactly what I need.

Jeff



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Getting more detail in plpython error messages
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal