Re: Does the block of code in a stored procedure execute as a transaction?

Поиск
Список
Период
Сортировка
От
Тема Re: Does the block of code in a stored procedure execute as a transaction?
Дата
Msg-id 65238.66.212.203.144.1059532500.squirrel@$HOSTNAME
обсуждение исходный текст
Ответ на Re: Does the block of code in a stored procedure execute as a transaction?  (Freddy Menjívar M. <mmfreddy@hotmail.com>)
Список pgsql-general
> NO,
> Functions and triggers doesn't start any transaction,
> it must be in a upper-level transaction, this since Postgresql
> doesn'n support nested transactions.
>
> therefore it is unsafe in multi-user enviroments :(

Thank you. But so how can I do this. Can I add a BEGIN TRANSACTION ...
COMMIT block around the call to my sequence-updater procedure inside the
trigger which invokes it?

~Berend Tober




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

Предыдущее
От: fixed
Дата:
Сообщение: Auto-increment not really working
Следующее
От:
Дата:
Сообщение: Re: Does the block of code in a stored procedure execute as a transaction?