pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Ross <jross@openvistas.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Getting more detail in plpython error messages
Date: Mon, 7 Mar 2022 11:12:29 -0700
Message-ID: <ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net> (raw)
In-Reply-To: <206445.1646676401@sss.pgh.pa.us>
References: <55b1d962-ee85-6fa7-d594-cdd905eb6640@openvistas.net>
	<206445.1646676401@sss.pgh.pa.us>

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





view thread (3+ messages)

Message-ID: <ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net>
Permalink:  ../ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net/
Also on:    postgresql.org/message-id/ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jross@openvistas.net
  Subject: Re: Getting more detail in plpython error messages
  In-Reply-To: <ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net>
  References: <55b1d962-ee85-6fa7-d594-cdd905eb6640@openvistas.net> <206445.1646676401@sss.pgh.pa.us> <ec601aad-7590-71a0-906f-092fcb526aba@openvistas.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox