Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7213C6321BB for ; Mon, 12 Jul 2010 15:31:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 31764-04 for ; Mon, 12 Jul 2010 18:30:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B0221632E99 for ; Mon, 12 Jul 2010 15:30:53 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o6CIUpZm022967; Mon, 12 Jul 2010 14:30:52 -0400 (EDT) To: Xavier Santana cc: pgsql-jdbc@postgresql.org Subject: Re: Commit gets locked until vacuum is performed In-reply-to: <4C3AF329.30200@slash-solutions.com> References: <4C3AF329.30200@slash-solutions.com> Comments: In-reply-to Xavier Santana message dated "Mon, 12 Jul 2010 12:49:13 +0200" Date: Mon, 12 Jul 2010 14:30:51 -0400 Message-ID: <22966.1278959451@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/39 X-Sequence-Number: 20704 Xavier Santana writes: > I'm using JDBC driver 8.1-413.jdbc3 to access a PostgreSQL 8.1.3 > database on windows. > Sometimes, when my application performs a commit of a transaction with > maybe 100 or 200 inserts, the operation gets locked, with no error > message or exception. > When that happens, if I perform a vacuum over the database (for example > from pgAdmin), the operation unlocks and the commit finishes correctly. > Any idea of what can be happening? Hard to say, but PG 8.1.3 on Windows is not a good place to be. The oldest branch that is considered supported on Windows is 8.2.x, and even there you want 8.2.pretty-recent. I'd try an update and see if the problem goes away. If you can still reproduce it on the latest version of a supported branch, please file a bug report. regards, tom lane