Re: procedures and transactions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: procedures and transactions
Дата
Msg-id 6299b758-7851-0a6d-8bb6-8c2956d03c74@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: procedures and transactions  (Rob Nikander <rob.nikander@gmail.com>)
Ответы Re: procedures and transactions  (Rob Nikander <rob.nikander@gmail.com>)
Список pgsql-general
On 2019-02-19 22:48, Rob Nikander wrote:
> I thought if I had some application logic that needed a certain kind of
> transaction (maybe a non-default isolation level), I could hide that
> fact in a procedure. App code (Java/Python/whatever) could remain
> unaware of transactions (except maybe needing to retry after a failure)
> and simply send `call foo(?, ?)` to the DB.

You can run SET TRANSACTION ISOLATION LEVEL in a procedure.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Vincent Predoehl
Дата:
Сообщение: Re: Plpythonu extension
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Plpythonu extension