Re: Procedures, triggers and transactions...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Procedures, triggers and transactions...
Дата
Msg-id 28573.1075064929@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Procedures, triggers and transactions...  (Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>)
Ответы Re: Procedures, triggers and transactions...
Список 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 по дате отправления:

Предыдущее
От: Mauri Sahlberg
Дата:
Сообщение: Procedures, triggers and transactions...
Следующее
От: "Coby Beck"
Дата:
Сообщение: suddenly changed behaviour