X-Original-To: pgsql-general-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 10B149FB2D0 for ; Sat, 9 Sep 2006 21:49:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 12388-05 for ; Sat, 9 Sep 2006 21:49:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id EAD999FB2CF for ; Sat, 9 Sep 2006 21:49:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8A0nYk2022970; Sat, 9 Sep 2006 20:49:34 -0400 (EDT) To: Peter@berghold.net cc: General Subject: Re: Idle in transaction state. In-reply-to: <4503046F.7030901@Berghold.Net> References: <4503046F.7030901@Berghold.Net> Comments: In-reply-to "Peter L. Berghold" message dated "Sat, 09 Sep 2006 14:14:07 -0400" Date: Sat, 09 Sep 2006 20:49:34 -0400 Message-ID: <22969.1157849374@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.112 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/358 X-Sequence-Number: 100612 "Peter L. Berghold" writes: > What I'm seeing is the first time my web application is being run there > is a bunch of processes running around that look like: > "postgres: peter peter_trialdb 127.0.0.1(46222) idle" "idle" is fine, "idle in transaction" is not so fine, because those might be holding locks that block things like schema changes. You need to figure out why your client-side code isn't closing out its transactions promptly. You'd probably be better off asking on the pgsql-jdbc list about this, as the folks likely to know about Java-stack issues hang out there. regards, tom lane