pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Schaber <schabi@logix-tt.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Statement Timeout and Locking
Date: Thu, 28 Apr 2005 10:11:37 -0400
Message-ID: <11053.1114697497@sss.pgh.pa.us> (raw)
In-Reply-To: <4270BAE0.1020402@logix-tt.com>
References: <4270BAE0.1020402@logix-tt.com>

Markus Schaber <schabi@logix-tt.com> 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



view thread (6+ messages)  latest in thread

Message-ID: <11053.1114697497@sss.pgh.pa.us>
Permalink:  ../11053.1114697497@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11053.1114697497@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, schabi@logix-tt.com
  Subject: Re: Statement Timeout and Locking
  In-Reply-To: <11053.1114697497@sss.pgh.pa.us>
  References: <4270BAE0.1020402@logix-tt.com> <11053.1114697497@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox