Re: Procedures, triggers and transactions... - Mailing list pgsql-admin

From Tom Lane
Subject Re: Procedures, triggers and transactions...
Date
Msg-id 28573.1075064929@sss.pgh.pa.us
Whole thread Raw
In response to Procedures, triggers and transactions...  (Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>)
Responses Re: Procedures, triggers and transactions...  (Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>)
List pgsql-admin
Mauri Sahlberg <Mauri.Sahlberg@claymountain.com> writes:
> The framework is that a c++ application transforms xml-input data to
> sql-procedure calls with appropriate parameters who in turn call another
> procedures who in turn call another procedures... And as all procedures
> are run in the transaction of the outermost select (in this case the c++
> application's select that called the initial procedure) we have huge
> problems with concurrency.

Why do you have "huge problems with concurrency"?  Under MVCC the only
reason for such things to conflict is if different transactions try to
update the same rows.  If you do have such updates, it would seem that
breaking the transactions into smaller ones would be likely to introduce
correctness issues ...

            regards, tom lane

pgsql-admin by date:

Previous
From: Mauri Sahlberg
Date:
Subject: Procedures, triggers and transactions...
Next
From: "Coby Beck"
Date:
Subject: suddenly changed behaviour