Re: Transaction with in function

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Transaction with in function
Дата
Msg-id AANLkTinpRWKHTk5ACxGjj1Wdluho6LtHWregld0nXSDf@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Transaction with in function  (Ravi Katkar <Ravi.Katkar@infor.com>)
Список pgsql-general
On Wed, May 26, 2010 at 2:52 AM, Ravi Katkar <Ravi.Katkar@infor.com> wrote:
> How can we achieve nested transactions? ( may be using save points )with in functions.
> Is there any work around?

It unfortunately can't be done from within the database.  There is
only one workaround -- using dblink or similar technology to connect
back to the database inside your function to bend/break transaction
rules.

In the 9.0 world, this (no implicit transaction state pl code,
possibly termed 'stored procedures') is one of the top two or three
requested features.

merlin

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: why doesn't insert into foo delete from bar returning baz work?
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: why doesn't insert into foo delete from bar returning baz work?