Re: Transactions within a function

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема Re: Transactions within a function
Дата
Msg-id Pine.BSO.4.10.10107060946250.7004-100000@spider.pilosoft.com
обсуждение исходный текст
Ответ на Transactions within a function  (Daniel Åkerud <zilch@home.se>)
Список pgsql-general
On Fri, 6 Jul 2001, [iso-8859-1] Daniel �kerud wrote:

> Do the BEGIN and END in a function also indicate that it is done in a
> transaction? Or can you put another BEGIN TRANSACTION; END
> TRANSACTION; in there?

No. Functions cannot start/stop transactions, as postgresql does not
currently support nested transactions. BEGIN/END are pascalish/adaish
things identical to { and } in C.

-alex


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

Предыдущее
От: Morgan Curley
Дата:
Сообщение: Cross database foreign keys
Следующее
От: Mithun Bhattacharya
Дата:
Сообщение: Another DBD::Pg question