X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9F8E153D5A for ; Thu, 28 Apr 2005 11:11:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22281-10 for ; Thu, 28 Apr 2005 14:11:35 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id AB0E953CC1 for ; Thu, 28 Apr 2005 11:11:34 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3SEBbd8011054; Thu, 28 Apr 2005 10:11:37 -0400 (EDT) To: Markus Schaber Cc: "pgsql-jdbc@postgresql.org" Subject: Re: Statement Timeout and Locking In-reply-to: <4270BAE0.1020402@logix-tt.com> References: <4270BAE0.1020402@logix-tt.com> Comments: In-reply-to Markus Schaber message dated "Thu, 28 Apr 2005 12:28:48 +0200" Date: Thu, 28 Apr 2005 10:11:37 -0400 Message-ID: <11053.1114697497@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/198 X-Sequence-Number: 12805 Markus Schaber writes: > conn.createStatement().execute("SET statement_timeout TO 5000; LOCK TABLE exampletable IN EXCLUSIVE MODE; SET statement_timeout TO DEFAULT;"); At least in more recent JDBC drivers, I'd expect the above to fail entirely because you can only put one SQL command per V3 Parse message. Try splitting it into three statements. regards, tom lane