Ending transaction inside stored function

Поиск
Список
Период
Сортировка
От
Тема Ending transaction inside stored function
Дата
Msg-id 0A5B2E3C3A64CA4AB14F76DBCA76DDA44EF99F@seifur.hnit.is
обсуждение исходный текст
Ответы Re: Ending transaction inside stored function  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
This was probably asked n-times but still:

Is there any way to end (commit/rollback) a transaction inside a stored
function?

(The reason why it is good to commit/rollback in a stored procedure is that
in C/S environment it is not uncommon to have a dead client holding
locks(unfinished transactions) in the database. For web applications running
3 tires it is not such an issue actually.
Ending transactions in the database stored procedures engine solves this
issue: engine runs in the database itself and there is little probability
that engine goes down leaving uncleared locks in the database.
In fact DB stored procedures engine can be used as a middle-tire in C/S
environment, eliminating need for another kinds of middle tires)


Thank you in advance,
Laimis

В списке pgsql-general по дате отправления:

Предыдущее
От: Paul Thomas
Дата:
Сообщение: Re: SCO Extortion
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: SQL Exception Relation xxx does not exist