From: Oliver Jowett <oliver@opencloud.com>
To: Sriram Dandapani <sdandapani@counterpane.com>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [JDBC] number of transactions doubling
Date: Thu, 28 Sep 2006 23:13:41 +0000
Message-ID: <451C5725.4070905@opencloud.com> (raw)
In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF060E5B05@ca-mail1.cis.local>
References: <6992E470F12A444BB787B5C937B9D4DF060E5B05@ca-mail1.cis.local>
Sriram Dandapani wrote:
> Autocommit is set to off once a connection is obtained from the jboss
> pool. It is turned back on when it is closed (so that any idle
> transactions are committed).
Don't know what to suggest then -- if autocommit is off then the JDBC
driver should be sending BEGIN before the first query & COMMIT or
ROLLBACK when you explicitly delimit a transaction. There's nothing
special about batches.
You could set loglevel=2 as a JDBC URL parameter to see exactly what the
JDBC driver is sending, perhaps. Or turn on logging on the server side,
though I'm not sure at exactly which server version the logging of the
extended query protocol became useful.
-O
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-admin@postgresql.org
Cc: oliver@opencloud.com, sdandapani@counterpane.com, pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] number of transactions doubling
In-Reply-To: <451C5725.4070905@opencloud.com>
References: <6992E470F12A444BB787B5C937B9D4DF060E5B05@ca-mail1.cis.local> <451C5725.4070905@opencloud.com>
* 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