Re: Exceptions in PL/Perl?

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Exceptions in PL/Perl?
Дата
Msg-id 20050811145724.GA19252@fetter.org
обсуждение исходный текст
Ответ на Exceptions in PL/Perl?  (Jeff Boes <jeff@endpoint.com>)
Список pgsql-general
On Thu, Aug 11, 2005 at 10:15:11AM -0400, Jeff Boes wrote:
> How does one raise an exception from a PL/Perl function?
> Specifically, this is a trigger function. Is it as simple as "die
> <msg>"?

elog(ERROR, $errmsg)

works.

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100   mobile: +1 415 235 3778

Remember to vote!

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

Предыдущее
От: Ying Lu
Дата:
Сообщение: About using plpgsql funciton variable as the table name
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Exceptions in PL/Perl?