Re: rollback in C functions

Поиск
Список
Период
Сортировка
От Chris Mair
Тема Re: rollback in C functions
Дата
Msg-id 62e647e621dd500f172fa718abe0e0ee@smtp.hushmail.com
обсуждение исходный текст
Ответ на rollback in C functions  (Juan Pablo L <jpablolorenzetti@gmail.com>)
Ответы Re: rollback in C functions  (Juan Pablo L <jpablolorenzetti@gmail.com>)
Список pgsql-general
> The function is to execute updates on each ID assigning the value, but if
> one of these operation fails (does not meet certain criteria)
> inside the function i would like to rollback and leave everything
> untouched, in case other ID;s were already updated previously,
> and come back to the caller and infor

Hi,

I think you want ereport(), here is an example:
http://www.postgresql.org/docs/9.3/static/xfunc-c.html

Bye,
Chris.




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

Предыдущее
От: Paul Jungwirth
Дата:
Сообщение: Re: select where true, or select where input = '$var'
Следующее
От: Juan Pablo L
Дата:
Сообщение: Re: rollback in C functions