Re: [ADMIN] number of transactions doubling - Mailing list pgsql-jdbc

From Heikki Linnakangas
Subject Re: [ADMIN] number of transactions doubling
Date
Msg-id 451CDFAF.5050804@enterprisedb.com
Whole thread Raw
In response to Re: [ADMIN] number of transactions doubling  ("Jim C. Nasby" <jim@nasby.net>)
Responses Re: [ADMIN] number of transactions doubling  (Jim Nasby <jim@nasby.net>)
List pgsql-jdbc
Jim C. Nasby wrote:
> On Thu, Sep 28, 2006 at 02:51:24PM -0700, Sriram Dandapani wrote:
>
>> The target table has triggers that route data to appropriate tables. The
>> tables to which data is routed has check constraints that do further
>> inserts. (All of this happens in 1 jdbc transaction)
>>
>
> Actually, no matter what JDBC is doing, all of that will happen within a
> single transaction on the database (unless you're using something like
> dblink from within the triggers). So even if you were issuing insert
> statements with autocommit on, you'd see at most one transaction per
> insert.
>

The triggers might use subtransactions. You get implicit subtransactions
if have an EXCEPTION clause in a plpgsql function. I'm not sure if
there's other things that do that as well.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com


pgsql-jdbc by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: [ADMIN] number of transactions doubling
Next
From: Simon Riggs
Date:
Subject: Re: Optimizations in the latest driver