Re: How to know if SPI or some other API triggered an ERROR.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to know if SPI or some other API triggered an ERROR.
Дата
Msg-id 55568.1463839282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to know if SPI or some other API triggered an ERROR.  ("dandl" <david@andl.org>)
Ответы Re: How to know if SPI or some other API triggered an ERROR.  ("dandl" <david@andl.org>)
Список pgsql-general
"dandl" <david@andl.org> writes:
> The question is whether there is any way to know that some Postgres API call such as SPI (or others) did not return
butinstead triggered an elog(ERROR). 

I think what you're looking for is to set up a PG_TRY/PG_CATCH block to
intercept the error as the stack is being unwound.

            regards, tom lane


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

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: Thoughts on "Love Your Database"
Следующее
От: John DeSoi
Дата:
Сообщение: .bash_profile replaced on software updates