Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6F6252E005E for ; Mon, 18 Feb 2008 21:21:49 -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 29145-01-8 for ; Mon, 18 Feb 2008 21:21:45 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9D9362E009F for ; Mon, 18 Feb 2008 21:21:00 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m1J1Ks0q017815; Mon, 18 Feb 2008 20:20:54 -0500 (EST) To: Oliver Jowett cc: Gregory Stark , PostgreSQL - JDBC Subject: Re: Implementing setQueryTimeout() In-reply-to: <47BA2A6E.6050907@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> Comments: In-reply-to Oliver Jowett message dated "Tue, 19 Feb 2008 14:01:34 +1300" Date: Mon, 18 Feb 2008 20:20:54 -0500 Message-ID: <17814.1203384054@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/131 X-Sequence-Number: 18338 Oliver Jowett writes: > I'd argue that "close connection on network timeout if setQueryTimeout() > is set" is better than "do absolutely nothing special if > setQueryTimeout() is set", anyway. If you don't want queries being > aborted because they are taking too long to complete.. don't set a query > timeout! I think it's a serious, serious conceptual error to tie network timeouts to query timeouts. Maybe your specific application needs them to be the same, but implementing something that forces them to be the same is a good way to guarantee that your work won't be generally useful or acceptable for the mainstream driver. regards, tom lane