Re: Transactions within a function body

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Transactions within a function body
Дата
Msg-id 20081002141510.GA4151@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Transactions within a function body  (Reg Me Please <regmeplease@gmail.com>)
Ответы Re: Transactions within a function body
Список pgsql-general
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.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: Import German Number Format
Следующее
От: Reg Me Please
Дата:
Сообщение: Re: Transactions within a function body