pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: imi <linimi@gmail.com>
To: FM <dist-list@lexum.umontreal.ca>
Cc: Mailing List Postgres-Admin <pgsql-admin@postgresql.org>
Subject: Re: PGSQL 7.4.8 : idle in transaction problem
Date: Wed, 20 Jul 2005 08:28:25 +0200
Message-ID: <f739e4850507192328e6a1681@mail.gmail.com> (raw)
In-Reply-To: <42DD5955.8000501@lexum.umontreal.ca>
References: <42DD5955.8000501@lexum.umontreal.ca>

Hello,

(Sorry my english)

I saw this words in my 'ps -Af'. JBOSS use jdbc driver for postgres.
In java the Connection has a method: setAutoCommit(boolen).

Those connections where autocommit=false, and after the last sql
command (select, insert, update) NOT have rollback or commit, state
will "idle in transaction".

I'm sorry but I don't know how can you setup autocommit feature in the JBOSS.

linimi

On 7/19/05, FM <dist-list@lexum.umontreal.ca> wrote:
> Hello,
> 
> We are using JBOSS and postgresql on 1 database (DB1). From time to time
> the JBOSS process  <idle in transaction>.
> 
> What is strange is that users on all DB (not only DB1) are affected by
> the JBOSS <idle in transaction>.
> I understand that it locked DB1 but why it also locked users on others DB ?
> 
> Thanks !
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>



view thread (8+ messages)  latest in thread

Message-ID: <f739e4850507192328e6a1681@mail.gmail.com>
Permalink:  ../f739e4850507192328e6a1681@mail.gmail.com/
Also on:    postgresql.org/message-id/f739e4850507192328e6a1681@mail.gmail.com

 · 

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-admin@postgresql.org
  Cc: linimi@gmail.com, dist-list@lexum.umontreal.ca
  Subject: Re: PGSQL 7.4.8 : idle in transaction problem
  In-Reply-To: <f739e4850507192328e6a1681@mail.gmail.com>
  References: <42DD5955.8000501@lexum.umontreal.ca> <f739e4850507192328e6a1681@mail.gmail.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