From: | <lnd(at)hnit(dot)is> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Ending transaction inside stored function |
Date: | 2004-01-21 10:49:25 |
Message-ID: | 0A5B2E3C3A64CA4AB14F76DBCA76DDA44EF99F@seifur.hnit.is |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2004-01-21 11:33:32 | Re: SQL Exception Relation xxx does not exist |
Previous Message | Paul Thomas | 2004-01-21 09:23:51 | Re: SCO Extortion |