Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4FBCFB88BF4 for ; Fri, 3 Jun 2011 15:46:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 89938-08 for ; Fri, 3 Jun 2011 18:46:21 +0000 (UTC) X-Greylist: delayed 00:05:27.865065 by SQLgrey-1.7.6 Received: from irvnca2-mx-01.trustcommerce.com (unknown [207.38.46.53]) by mail.postgresql.org (Postfix) with ESMTP id E8647B88BCD for ; Fri, 3 Jun 2011 15:46:20 -0300 (ADT) Received: from localhost.localdomain (wsip-98-190-215-67.oc.oc.cox.net [98.190.215.67]) by irvnca2-mx-01.trustcommerce.com (Postfix) with ESMTP id 118DE139626 for ; Fri, 3 Jun 2011 11:40:51 -0700 (PDT) Message-ID: <4DE92AB2.90507@trustcommerce.com> Date: Fri, 03 Jun 2011 11:40:50 -0700 From: Johnny Luong Organization: TrustCommerce User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: SELECT statement_timeout(integer) in lieu of setQueryTimeout at the statement level X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201106/4 X-Sequence-Number: 21928 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi All, I'm trying to set an upper bound on the time a particular PreparedStatement (via executeQuery, executeBatch) and it looks like setQueryTimeout is not actually implemented. Assuming potential network failures/delay occur infrequently between the JDBC app and the Postgres server, would doing a SELECT statement_timeout() at the start of the connection simulate the behavior of setQueryTimeout in the other cases? Best, Johnny -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJN6SqyAAoJENQfv1FjsMMvjcUQAL769f0fBN0e4QpqCHplNmhj bVXJxyiOtAEHaDsBAkXX2odPOKbEiC9RljGqAeJqHj7b10zbY+OZ/ZkOxl7eiPsR IziC/tcS2bsc79jRLjJQqaBFL0qtFfRXBbgQo+9suRTvggb7fCHz8ThXE0U159ot R96c0HwjCSZaaqfU8tspkNWabVV5/lxqL8JskBQ6w6onrhcTx+gMdZ8gNZTVYLye vDYEpJgE4dOcmNmoA77nIZ/nkaeuOj/TRArovPvvOetAL+ynx1/gRbC2vjsYUuNk JUkXJ5bD7TdoWKOeyDOkVtjXhLBaePD3EVUKYwfmovzKWng3wIR+H3gERtRxnlvb 7ZGt+bwLMJ4HzU8aRePKY4nhzrQGCxG9lH0O1fj3oF3pZ1iiJO6U7yJvy1z87hgk 10EmjmOs5usMtRy1BS7fsNO8hz6KPSwiif4NLw0ZeL5kA0YcN8nwQygZFJfywcIK 9bAZbblYTYOn9WydLbyTPX97FD3fBAeRKp8otiD63HSAV0ASfYB6nuo9VVQe7WkX db1+iNARX03DO2pxLoA/IhfdRJX860b3pziBAo+rX+bi1JNMY9HUlsmuLwTNMZJS OoaZnx5WEHtxCbJ971Z4X3RC9My6UMiGB3KEAb5XmWgvvDdVGKPE3NxGVhnP64CW LhRW3q9tREpBAzn98Kbp =QClW -----END PGP SIGNATURE-----