Re: Ending transaction inside stored function

Поиск
Список
Период
Сортировка
От Chris Travers
Тема Re: Ending transaction inside stored function
Дата
Msg-id 01f701c3e0cc$1dbd20b0$bf285e3d@winxp
обсуждение исходный текст
Ответ на Ending transaction inside stored function  (<lnd@hnit.is>)
Список pgsql-general
> Is there any way to end (commit/rollback) a transaction inside a stored
> function?

Currently not, but you can RAISE EXCEPTION to terminate the containing
transaction.  This will essentially rollback the transaction when it hits
the COMMIT statement (or implied version).

Best Wishes,
Chris Travers


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

Предыдущее
От: "Chris Travers"
Дата:
Сообщение: Re: OT: SCO Extortion
Следующее
От: "Mattias Kregert"
Дата:
Сообщение: Re: Lost plpgsql function