Re: Capturing return value of a function - Mailing list pgsql-general

From George Weaver
Subject Re: Capturing return value of a function
Date
Msg-id 006a01c7c7f0$29fb1df0$6400a8c0@Dell4500
Whole thread Raw
In response to Capturing return value of a function  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
List pgsql-general
----- Original Message -----
From: Jasbinder Singh Bali
To: pgsql-general@postgresql.org
Sent: Monday, July 16, 2007 3:55 PM
Subject: [GENERAL] Capturing return value of a function

<snip>

> I was wondering what would the function return if insert fails.

> I want it to return 'success'  upon a successful insert and 'failure' if
> insert fails.

You can find out whether the insert was successful or not using the tools
here:

http://www.postgresql.org/docs/8.2/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS


<snip>

Regards,
George



pgsql-general by date:

Previous
From: Jeff Ross
Date:
Subject: Re: psql error while restoring database: unrecognized node type: 655
Next
From: Jeff Ross
Date:
Subject: Re: psql error while restoring database: unrecognized node type: 655