Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6E8DE2E0043 for ; Tue, 19 Feb 2008 04:27:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 16021-01 for ; Tue, 19 Feb 2008 04:27:47 -0400 (AST) Received: from jcour.kyon.de (www.ky-on.de [213.9.98.91]) by postgresql.org (Postfix) with ESMTP id 4C6C42E003E for ; Tue, 19 Feb 2008 04:27:47 -0400 (AST) Received: from mainframe.local (1.106.113.82.net.de.o2.com [82.113.106.1]) (AUTH: LOGIN tt, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by jcour.kyon.de with esmtp; Tue, 19 Feb 2008 09:27:38 +0100 id 0005D1A3.47BA92FC.00008560 Message-ID: <47BA92F1.3040707@kyon.de> Date: Tue, 19 Feb 2008 09:27:29 +0100 From: Till Toenges User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Oliver Jowett CC: PostgreSQL - JDBC , Tom Lane , Gregory Stark Subject: Re: Implementing setQueryTimeout() - round 2 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> In-Reply-To: <47BA5D9C.5050203@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=AWL=0.000 X-Spam-Level: X-Archive-Number: 200802/142 X-Sequence-Number: 18349 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