pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Joseph Shraibman <jks@selectacast.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Exception from deadlock
Date: Fri, 8 Jul 2005 19:58:38 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0507081950250.24956@leary.csoft.net> (raw)
In-Reply-To: <42CDB7C1.5050107@opencloud.com>
References: <daje8m$k6s$1@news.hub.org>
	<42CDB7C1.5050107@opencloud.com>



On Thu, 7 Jul 2005, Oliver Jowett wrote:

> Joseph Shraibman wrote:
> 
> > So my quesion is where did that detail information go in the jdbc driver?
> > 
> > I'm using postgres 7.4.7 with the jdbc driver that comes with it.
> 
> Can you try an 8.0-era driver from jdbc.postgresql.org? There have been 
> a number of changes to server error message handling since 7.4.
> 

Actually this is the same in 7.4 and later versions.  The level of detail 
put into the exception message is derived from the loglevel URL parameter, 
see the toString method.

http://gborg.postgresql.org/project/pgjdbc/cvs/co.php/pgjdbc/org/postgresql/util/ServerErrorMessage....

Later driver versions (8.1dev) allow pg specific code to access all of the 
fields individually to craft any message they desire.

I personally like the idea of putting more information into the default
error message.  How much more do people want?

http://www.postgresql.org/docs/8.0/static/protocol-error-fields.html

Kris Jurka



view thread (6+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0507081950250.24956@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0507081950250.24956@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0507081950250.24956@leary.csoft.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-jdbc@postgresql.org
  Cc: books@ejurka.com, oliver@opencloud.com, jks@selectacast.net
  Subject: Re: Exception from deadlock
  In-Reply-To: <Pine.BSO.4.56.0507081950250.24956@leary.csoft.net>
  References: <daje8m$k6s$1@news.hub.org> <42CDB7C1.5050107@opencloud.com> <Pine.BSO.4.56.0507081950250.24956@leary.csoft.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