Re: Getting more detail in plpython error messages - Mailing list pgsql-general

From Jeff Ross
Subject Re: Getting more detail in plpython error messages
Date
Msg-id ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net
Whole thread Raw
In response to Re: Getting more detail in plpython error messages  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Getting more detail in plpython error messages
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal