JDBC and transactions

From: "Chris White (cjwhite)" <cjwhite(at)cisco(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC and transactions
Date: 2005-04-01 23:39:41
Message-ID: 200504012339.j31Ndf3S013996@sj-core-4.cisco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I am using JDBC to connect to my database. I am using connections with
autocommit turned off, so I can use transactions.

Questions:

1) When does a transaction start? As soon as I do the first insert/update on
the connection or as soon as I set autocommit off?
2) After doing a commit, when does the next transaction start?

The reason I ask these questions is because I have an issue doing DB Vacuum,
where free rows are not being reused because there is still an active
transaction that was started before the rows were deleted, and I am trying
to determine what could be causing the problem.

TIA
Chris White

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2005-04-02 07:33:13 Re: JDBC and transactions
Previous Message Kris Jurka 2005-04-01 07:32:30 Re: DDL in transactions?