Postgres: Transaction Connections

Started by CM Jalmost 17 years ago3 messagesgeneral
Jump to latest
#1CM J
postgres.newbie@gmail.com

Hi ,

I use postgres database server 8.2.12 with my java application. I
was wondering if postgres supports transactions by default or do i have to
turn some parameter on to enable transaction support ?

Thanks.

#2John R Pierce
pierce@hogranch.com
In reply to: CM J (#1)
Re: Postgres: Transaction Connections

CM J wrote:

Hi ,

I use postgres database server 8.2.12 with my java
application. I was wondering if postgres supports transactions by
default or do i have to turn some parameter on to enable transaction
support ?

Postgres supports transactions by default.

Postgres JDBC drivers for Java have two operating modes, autocommit
where every statement is its own transaction, and non-autocommit, where
you have to explicitly commit or rollback to end a transaction.

#3Thomas Kellerer
spam_eater@gmx.net
In reply to: John R Pierce (#2)
Re: Postgres: Transaction Connections

John R Pierce, 06.05.2009 07:33:

I use postgres database server 8.2.12 with my java
application. I was wondering if postgres supports transactions by
default or do i have to turn some parameter on to enable transaction
support ?

Postgres supports transactions by default.

Actually - as with any other sensible RDBMS - you can *not* turn them off.

Thomas