Re: User Defined Functions Errors - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: User Defined Functions Errors
Date
Msg-id 20050418190753.GA40910@winnie.fuhr.org
Whole thread Raw
In response to User Defined Functions Errors  ("A. Kulikov" <a.kulikov@gmail.com>)
List pgsql-sql
On Mon, Apr 18, 2005 at 10:32:26PM +0400, A. Kulikov wrote:
>
> How to I return an error from inside a user defined function?

Use RAISE.  See "Errors and Messages" in the PL/pgSQL documentation.

http://www.postgresql.org/docs/8.0/interactive/plpgsql-errors-and-messages.html

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


pgsql-sql by date:

Previous
From: "A. Kulikov"
Date:
Subject: User Defined Functions Errors
Next
From: Ying Lu
Date:
Subject: About "Alter table... alter column.. TYPE ... "