Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1174163382A for ; Tue, 7 Jul 2009 11:58:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 23428-01 for ; Tue, 7 Jul 2009 11:58:15 -0300 (ADT) X-Greylist: delayed 00:06:04.748462 by SQLgrey-1.7.6 Received: from n4a.bullet.mail.ac4.yahoo.com (n4a.bullet.mail.ac4.yahoo.com [76.13.13.67]) by mail.postgresql.org (Postfix) with SMTP id 680186336FA for ; Tue, 7 Jul 2009 11:58:24 -0300 (ADT) Received: from [76.13.13.26] by n4.bullet.mail.ac4.yahoo.com with NNFMP; 07 Jul 2009 14:52:14 -0000 Received: from [76.13.10.169] by t3.bullet.mail.ac4.yahoo.com with NNFMP; 07 Jul 2009 14:52:14 -0000 Received: from [127.0.0.1] by omp110.mail.ac4.yahoo.com with NNFMP; 07 Jul 2009 14:52:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 240756.21520.bm@omp110.mail.ac4.yahoo.com Received: (qmail 48651 invoked by uid 60001); 7 Jul 2009 14:52:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1246978334; bh=Gl9GYTZbaW6YZu5NX/QyK25HgziVI5Ts9nByCBRY7Rg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=RoOfJfskidzQrpTJgVB7IUiS6fSTVnb7r+ihYld7CpCHbgpZ+zW5EasuKT3fKVHZZGYZCPre4tQi8b1ONosZwZqSCFa+uybcYI4l1gQk8SVHhQlsQw5jYX8xQtXh/eHHdTfFC9DbBKzst4FS3KA/DpzZjQBiYIcns8y3TVd01zU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=3WQFyHJnLzOwnZei1fKjURWG5O3+AXUOWhbM1hBlefSKDzNSky9cDo6ZDme+Kz5WJgIguuJmvZfrBluL6sdax6BKyuslhIYd77dP97fv+kJk95FzYbwRVKjKaYO3Q6gQ3FPLgRsqrNNnAE9WfxdvgUNUQFF8SIeLEKXryoQyj14=; Message-ID: <81558.48515.qm@web59810.mail.ac4.yahoo.com> X-YMail-OSG: 0tuJlasVM1nFiqsGLEGivDIig6dvuuxCS4S5TM7riXYU.ykeKVDYoXUsqUQIOeu6Fyrd1ChdRO2gWSxTIek0kYV94CBRm.scwwOPm1HiHD4u_kY2rdmL5BH.1yaH3o1lbr0ADHLrE.wUJOPbDjO7FwunfblUvLWBk7Ad2PthHUdXkwaFAI1Du6ajBOdBD.Rnz58wkORo8WUGKHnBhI8L14e91slypQBQOMU3SghTloBapkiN_GCb8aPElzMdFORLbvG0MkpMUZxhHECV_s9A9MVL Received: from [207.58.220.206] by web59810.mail.ac4.yahoo.com via HTTP; Tue, 07 Jul 2009 07:52:12 PDT X-Mailer: YahooMailClassic/5.4.17 YahooMailWebService/0.7.289.15 Date: Tue, 7 Jul 2009 07:52:12 -0700 (PDT) From: User Subject: Re: setQueryTimeout To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200907/15 X-Sequence-Number: 19783 According to my tests the 8.2 driver does not actually enforce the "setQueryTimeout" value regardless of which version of Postgresql is used on the back-end. The new "socketTimeout" connection option may be used as a kind of 'global' query time-out as it applies to all queries for the connection. However, it is based on socket time-out yet must be caught as a PSQLException or Exception. Regardless, "setQueryTimeout" enforcement would really help with some enterprise applications which need to enforce real-time constraints. --- On Mon, 7/6/09, Jamie D wrote: > From: Jamie D > Subject: [JDBC] setQueryTimeout > To: pgsql-jdbc@postgresql.org > Date: Monday, July 6, 2009, 12:55 AM > Hi, > > Is there any plans to implement setQueryTimeout on the 8.4 > JDBC > driver? > > Our application uses this statement and is forcing us to > use 8.2 > driver with Postgresql 8.4. > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc >