From: | "Sriram Dandapani" <sdandapani(at)counterpane(dot)com> |
---|---|
To: | "Jim Nasby" <jim(at)nasby(dot)net>, "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com> |
Cc: | <pgsql-jdbc(at)postgresql(dot)org>, <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: [JDBC] number of transactions doubling |
Date: | 2006-09-29 18:31:11 |
Message-ID: | 6992E470F12A444BB787B5C937B9D4DF060E5C0E@ca-mail1.cis.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-jdbc |
The inserts are applied to a table that has triggers. The trigger has an
exception clause. Each insert is routed based on certain conditions.
Does the presence of an exception clause generate subtransactions
regardless of whether exceptions occurred? If so, do subtransactions
count towards the transaction id wraparound limit counter?
-----Original Message-----
From: Jim Nasby [mailto:jim(at)nasby(dot)net]
Sent: Friday, September 29, 2006 10:22 AM
To: Heikki Linnakangas
Cc: Sriram Dandapani; pgsql-jdbc(at)postgresql(dot)org;
pgsql-admin(at)postgresql(dot)org
Subject: Re: [JDBC] [ADMIN] number of transactions doubling
On Sep 29, 2006, at 4:56 AM, Heikki Linnakangas wrote:
> 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.
Ahh, I thought that was handled within cmin/cmax.
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Jones | 2006-09-29 18:51:59 | Re: [GENERAL] Array assignment behavior (was Re: Stored procedure |
Previous Message | Sriram Dandapani | 2006-09-29 18:21:50 | Re: autovacuum ignore tables |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-09-29 21:39:17 | Re: [JDBC] number of transactions doubling |
Previous Message | Jim Nasby | 2006-09-29 17:21:52 | Re: [JDBC] number of transactions doubling |