Re: Problem using start transaction in nested transactions.

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: Problem using start transaction in nested transactions.
Дата
Msg-id m2d5m4xan0.fsf@Douglas-McNaughts-Powerbook.local
обсуждение исходный текст
Ответ на Re: Problem using start transaction in nested transactions.  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-general
"Jim C. Nasby" <jnasby@pervasive.com> writes:

> You can't do subtransactions in PostgreSQL, but you can use savepoints:
> http://www.postgresql.org/docs/8.0/interactive/sql-savepoint.html.
>
> Previously, you couldn't do any transactional stuff from inside
> functions. I'm not sure if you can do savepoint-related stuff from
> inside functions in 8.0 or not.

Yes, you certainly can; PL/pgSQL uses savepoints to do its exception
handling.

-Doug

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: searching array
Следующее
От: Tom Lane
Дата:
Сообщение: Re: searching array