From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrea Spinelli <aspinelli@imteam.it>
Cc: pgsql-jdbc@postgresql.org
Cc: Alessandro Magnolo <amagnolo@imteam.it>
Cc: Valerio Mazzoleni <vmazzoleni@imteam.it>
Subject: Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter
Date: Fri, 10 Aug 2007 12:20:45 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0708101218210.14101@leary.csoft.net> (raw)
In-Reply-To: <3763.1186762494@sss.pgh.pa.us>
References: <46BC20B6.4080409@imteam.it>
<Pine.BSO.4.64.0708100538530.31534@leary.csoft.net>
<3763.1186762494@sss.pgh.pa.us>
On Fri, 10 Aug 2007, Tom Lane wrote:
> Kris Jurka <books@ejurka.com> writes:
>> People want the query to be stopped, but they don't want their whole
>> connection to be killed which is what your change does.
>
> Can't you just "set statement_timeout = something" if you don't want to
> let long queries complete?
>
Unfortunately the timeout is set on a Statement object, not the
Connection, so any number of different timeouts may be floating around and
we'd need to set and reset the timeout on each query execution to ensure
we're executing with the right timeout. So that's how it will be
implemented eventually, but it's not just a trivial SET that we're
missing.
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, tgl@sss.pgh.pa.us, aspinelli@imteam.it, amagnolo@imteam.it, vmazzoleni@imteam.it
Subject: Re: executeQuery hangs on busy server - PROPOSAL: socketTimeout parameter
In-Reply-To: <Pine.BSO.4.64.0708101218210.14101@leary.csoft.net>
References: <46BC20B6.4080409@imteam.it> <Pine.BSO.4.64.0708100538530.31534@leary.csoft.net> <3763.1186762494@sss.pgh.pa.us> <Pine.BSO.4.64.0708101218210.14101@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