X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AA4B852AD9 for ; Fri, 8 Jul 2005 21:58:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20863-07 for ; Sat, 9 Jul 2005 00:58:37 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id F25EC52A78 for ; Fri, 8 Jul 2005 21:58:35 -0300 (ADT) Received: (qmail 14373 invoked by uid 1112); 9 Jul 2005 00:58:38 -0000 Date: Fri, 8 Jul 2005 19:58:38 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett Cc: Joseph Shraibman , pgsql-jdbc@postgresql.org Subject: Re: Exception from deadlock In-Reply-To: <42CDB7C1.5050107@opencloud.com> Message-ID: References: <42CDB7C1.5050107@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/48 X-Sequence-Number: 13196 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.java?r=1.8 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