Re: Transactions in user defined function

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: Transactions in user defined function
Дата
Msg-id 49BA7129.9050108@wildenhain.de
обсуждение исходный текст
Ответ на Transactions in user defined function  (Jasid ZA <za.jasid@gmail.com>)
Список pgsql-general
Jasid ZA wrote:
> Hi,
>
> Can we use sql transaction(BEGIN, COMMIT, REVOKE) inside a user defined
> function in Postgresql 8.3?

Would that part of the documentation help?

http://www.postgresql.org/docs/8.3/interactive/plpgsql-structure.html

"Functions and trigger procedures are always executed within a
transaction established by an outer query — they cannot start or commit
that transaction, since there would be no context for them to execute in."

so in short: no.

Regards
Tino


Вложения

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

Предыдущее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: Transactions in user defined function
Следующее
От: Tino Wildenhain
Дата:
Сообщение: Re: Transactions in user defined function