Re: Transactions within a function body

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Transactions within a function body
Дата
Msg-id 20081002151023.GB4151@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Transactions within a function body  (Reg Me Please <regmeplease@gmail.com>)
Ответы Re: Transactions within a function body
Re: Transactions within a function body
Re: Transactions within a function body
Список pgsql-general
Reg Me Please escribió:
> Il Thursday 02 October 2008 16:15:10 Alvaro Herrera ha scritto:

> > You can nest blocks arbitrarily, giving you the chance to selectively
> > rollback pieces of the function.  It's only a bit more awkward.
>
> You mean I can issue a ROLLBACK command within a BEGIN...END; block to roll it
> back?

No -- I mean you can use BEGIN/EXCEPTION/END blocks as you like, nesting
them or putting one after another.  Complementing this with RAISE
EXCEPTION you can cause savepoints to roll back at will.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: tsearch 2 query
Следующее
От: Reg Me Please
Дата:
Сообщение: Re: Transactions within a function body