Re: how can I check the error status??

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: how can I check the error status??
Дата
Msg-id 444F2F41.5010908@archonet.com
обсуждение исходный текст
Ответ на how can I check the error status??  ("Luis Alberto Pérez Paz" <midriasis@gmail.com>)
Список pgsql-general
Luis Alberto Pérez Paz wrote:
> Hi everybody!
>
> I'm migrating some sybase store procedures to postgres functions,
> I almost have found all that I need, however I dont know how to check the
> error status of the last transaction.
> I need to find in postgres the equivalent to the sybase @@error global
> variable.

If you're using pl/pgsql then you'll want to read the "Trapping Errors"
chapter of the manuals.

http://www.postgresql.org/docs/8.1/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING

--
   Richard Huxton
   Archonet Ltd


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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: Please comment on the following OpenFTS/tsearch2 issues!
Следующее
От: Hannes Dorbath
Дата:
Сообщение: Cascade constraint renames?