Re: Exceptions in PL/Perl?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Exceptions in PL/Perl?
Дата
Msg-id 20050811144304.GA91822@winnie.fuhr.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>"?

Use elog:

http://www.postgresql.org/docs/8.0/static/plperl-database.html

--
Michael Fuhr

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Exceptions in PL/Perl?
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: About using plpgsql funciton variable as the table