Re: Transactions within a function body

Поиск
Список
Период
Сортировка
От Reg Me Please
Тема Re: Transactions within a function body
Дата
Msg-id 200810021625.19719.regmeplease@gmail.com
обсуждение исходный текст
Ответ на Re: Transactions within a function body  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Transactions within a function body  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
Il Thursday 02 October 2008 16:15:10 Alvaro Herrera ha scritto:
> Reg Me Please escribió:
> > Well, if it is a limitation, and having it would lead to a "better
> > product", why not making it a feature for the next still-open release?
>
> Because no one is working on implementing it?
>
> > In my opinion that's more than a limitation, it's a missing feature.
> > In your code you often need to create savepoints to delay the decision
> > for the commitment.
> > A Pl/PgSQL function is just a bunch of code you want to move into the DB.
> > So the need for savepoints seems to me to be still there.
>
> 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?

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Transactions within a function body
Следующее
От: "Matthew Terenzio"
Дата:
Сообщение: tsearch2 query