Re: Proposed patch for showing originating query on error - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Proposed patch for showing originating query on error
Date
Msg-id 42E8EFBD.2060705@opencloud.com
Whole thread Raw
In response to Proposed patch for showing originating query on error  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: Proposed patch for showing originating query on error  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Dave Cramer wrote:
> This just adds an exception to the existing backend exception showing
> the originating query.

I think the basic idea is ok, but..

- this should be on the original exception, not on a chained synthetic
exception
- doing it only in execute() seems incomplete, there are other query
execution paths, perhaps this logic belongs somewhere in the query executor?
- ideally it should be configurable (hook it into whatever came out of
Kris' suggestions about including more info in server-generated
exception, perhaps?)

-O

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Proposed patch for showing originating query on error
Next
From: Dave Cramer
Date:
Subject: Re: Proposed patch for showing originating query on error