pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Till Toenges <tt@kyon.de>
To: Oliver Jowett <oliver@opencloud.com>
Cc: PostgreSQL - JDBC <pgsql-jdbc@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gregory Stark <stark@enterprisedb.com>
Subject: Re: Implementing setQueryTimeout() - round 2
Date: Tue, 19 Feb 2008 09:27:29 +0100
Message-ID: <47BA92F1.3040707@kyon.de> (raw)
In-Reply-To: <47BA5D9C.5050203@opencloud.com>
References: <47B8E200.2020307@opencloud.com>
	<5350.1203299903@sss.pgh.pa.us>
	<47B8EB1C.8090802@opencloud.com>
	<87ejbao6bg.fsf@oxford.xeocode.com>
	<47BA2A6E.6050907@opencloud.com>
	<17814.1203384054@sss.pgh.pa.us>
	<47BA470A.8000904@opencloud.com>
	<19443.1203390470@sss.pgh.pa.us>
	<47BA491E.9090603@opencloud.com>
	<47BA5D9C.5050203@opencloud.com>

Oliver Jowett wrote:
> - softQueryTimeout: 0=disabled, >0 = timeout in ms, default 0
> - hardQueryTimeout: 0=disabled, >0 = timeout in ms, default 0
> - softQueryMargin: -1=disabled, >=0 = margin in ms, default 0
> - hardQueryMargin: -1=disabled, >=0 = margin in ms, default 60s

I had to think about how you mean this. Doesn't this reduce to just one 
useful parameter, namely hardQueryMargin? If hardQueryMargin is set, 
then kill the connection after setQueryTimeout() + hardQueryMargin 
seconds? All other cases would be covered by setting appropriate values 
for these two.

And i'm still not quite convinced that anything but "softQueryTimeout" 
should be implemented by the driver, but that's just my personal 
opinion. How about starting with the simple case (using set), and then 
see how it turns out in the real world?


Till



view thread (7+ messages)  latest in thread

Message-ID: <47BA92F1.3040707@kyon.de>
Permalink:  ../47BA92F1.3040707@kyon.de/
Also on:    postgresql.org/message-id/47BA92F1.3040707@kyon.de

 · 

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: tt@kyon.de, oliver@opencloud.com, tgl@sss.pgh.pa.us, stark@enterprisedb.com
  Subject: Re: Implementing setQueryTimeout() - round 2
  In-Reply-To: <47BA92F1.3040707@kyon.de>
  References: <47B8E200.2020307@opencloud.com> <5350.1203299903@sss.pgh.pa.us> <47B8EB1C.8090802@opencloud.com> <87ejbao6bg.fsf@oxford.xeocode.com> <47BA2A6E.6050907@opencloud.com> <17814.1203384054@sss.pgh.pa.us> <47BA470A.8000904@opencloud.com> <19443.1203390470@sss.pgh.pa.us> <47BA491E.9090603@opencloud.com> <47BA5D9C.5050203@opencloud.com> <47BA92F1.3040707@kyon.de>

* 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