JDBC and transactions - Mailing list pgsql-jdbc

From Chris White (cjwhite)
Subject JDBC and transactions
Date
Msg-id 200504012339.j31Ndf3S013996@sj-core-4.cisco.com
Whole thread Raw
Responses Re: JDBC and transactions
List 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
 

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: DDL in transactions?
Next
From: Kris Jurka
Date:
Subject: Re: JDBC and transactions