pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Xavier Santana <xsantana@slash-solutions.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Commit gets locked until vacuum is performed
Date: Mon, 12 Jul 2010 14:30:51 -0400
Message-ID: <22966.1278959451@sss.pgh.pa.us> (raw)
In-Reply-To: <4C3AF329.30200@slash-solutions.com>
References: <4C3AF329.30200@slash-solutions.com>

Xavier Santana <xsantana@slash-solutions.com> 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



view thread (3+ messages)

Message-ID: <22966.1278959451@sss.pgh.pa.us>
Permalink:  ../22966.1278959451@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22966.1278959451@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, xsantana@slash-solutions.com
  Subject: Re: Commit gets locked until vacuum is performed
  In-Reply-To: <22966.1278959451@sss.pgh.pa.us>
  References: <4C3AF329.30200@slash-solutions.com> <22966.1278959451@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