Re: transaction in function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: transaction in function
Дата
Msg-id 5992.1165337832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на transaction in function  (Marian POPESCU <softexpert@libertysurf.fr>)
Список pgsql-sql
Marian POPESCU <softexpert@libertysurf.fr> writes:
> I want to write a function that updates several tables; if there is an
> exception while updating, it should rollback the transaction and raise an
> error.

> How can this be done in pgPLSQL in PostgreSQL 8.1 ?

You just do it.  You would have to work at it to *not* have that behavior.
        regards, tom lane


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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: transaction in function
Следующее
От: "Collin Peters"
Дата:
Сообщение: Question about "AT TIME ZONE"