pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Commit gets locked until vacuum is performed
3+ messages / 3 participants
[nested] [flat]

* Commit gets locked until vacuum is performed
@ 2010-07-12 10:49 Xavier Santana <xsantana@slash-solutions.com>
  2010-07-12 17:52 ` Re: Commit gets locked until vacuum is performed Kevin Grittner <Kevin.Grittner@wicourts.gov>
  2010-07-12 18:30 ` Re: Commit gets locked until vacuum is performed Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 3+ messages in thread

From: Xavier Santana @ 2010-07-12 10:49 UTC (permalink / raw)
  To: pgsql-jdbc

Hi all,

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?

Thanks in advance.

Xavier




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Commit gets locked until vacuum is performed
  2010-07-12 10:49 Commit gets locked until vacuum is performed Xavier Santana <xsantana@slash-solutions.com>
@ 2010-07-12 17:52 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  1 sibling, 0 replies; 3+ messages in thread

From: Kevin Grittner @ 2010-07-12 17:52 UTC (permalink / raw)
  To: pgsql-jdbc; Xavier Santana <xsantana@slash-solutions.com>

Xavier Santana <xsantana@slash-solutions.com> wrote:
 
> I'm using JDBC driver 8.1-413.jdbc3 to access a PostgreSQL 8.1.3 
> database on windows.
 
Version 8.1.anything is not supported on Windows:
 
http://wiki.postgresql.org/wiki/PostgreSQL_Release_Support_Policy
 
8.1.3 is a very old version of that major release with many known bugs
fixed in later minor releases.
 
http://www.postgresql.org/support/versioning
http://www.postgresql.org/docs/8.1/static/release.html
 
The recommended JDBC driver for that PostgreSQL version is 8.4-701:
 
http://jdbc.postgresql.org/download.html#current
 
Given what you're running, it's amazing that is your biggest problem. 
Please update as soon as possible, at least to 8.2.something-recent.
 
-Kevin



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Commit gets locked until vacuum is performed
  2010-07-12 10:49 Commit gets locked until vacuum is performed Xavier Santana <xsantana@slash-solutions.com>
@ 2010-07-12 18:30 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2010-07-12 18:30 UTC (permalink / raw)
  To: Xavier Santana <xsantana@slash-solutions.com>; +Cc: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2010-07-12 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-07-12 10:49 Commit gets locked until vacuum is performed Xavier Santana <xsantana@slash-solutions.com>
2010-07-12 17:52 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2010-07-12 18:30 ` Tom Lane <tgl@sss.pgh.pa.us>

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