Ending transaction inside stored function - Mailing list pgsql-general

From
Subject Ending transaction inside stored function
Date
Msg-id 0A5B2E3C3A64CA4AB14F76DBCA76DDA44EF99F@seifur.hnit.is
Whole thread Raw
Responses Re: Ending transaction inside stored function  (Bruno Wolff III <bruno@wolff.to>)
List 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 by date:

Previous
From: Paul Thomas
Date:
Subject: Re: SCO Extortion
Next
From: Kris Jurka
Date:
Subject: Re: SQL Exception Relation xxx does not exist