From: Kris Jurka <books@ejurka.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: tgl@sss.pgh.pa.us
Cc: oliver@opencloud.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: java.sql.SQLException: ERROR: canceling query due
Date: Fri, 19 Aug 2005 12:08:42 -0500 (EST)
Message-ID: <Pine.BSO.4.62.0508191200480.24486@leary.csoft.net> (raw)
In-Reply-To: <s305ac71.055@gwmta.wicourts.gov>
References: <s305ac71.055@gwmta.wicourts.gov>
On Fri, 19 Aug 2005, Kevin Grittner wrote:
> I'm curious whether "SET statement_timeout=n" sets this for a
> connection. If so, wouldn't it be a good thing to update the JDBC
> setQueryTimeout and getQueryTimeout methods to use these SET and SHOW
> statements?
>
Yes, it sets it per connection, but the problem is that the JDBC level
needs it per Statement. So we'd have to set/reset it for each command.
I was originally concerned about thread safety and transactions, but
thinking about it some more now the monitor around QueryExecutorImpl
should protect against that. Maybe this is easier than I thought.
Kris Jurka
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, Kevin.Grittner@wicourts.gov, tgl@sss.pgh.pa.us, oliver@opencloud.com
Subject: Re: java.sql.SQLException: ERROR: canceling query due
In-Reply-To: <Pine.BSO.4.62.0508191200480.24486@leary.csoft.net>
References: <s305ac71.055@gwmta.wicourts.gov> <Pine.BSO.4.62.0508191200480.24486@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