Re: hi let me know the solution to this question - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: hi let me know the solution to this question
Date
Msg-id 20060718053442.GA9694@winnie.fuhr.org
Whole thread Raw
In response to hi let me know the solution to this question  ("Penchalaiah P." <penchalaiahp@infics.com>)
Responses Re: hi let me know the solution to this question  ("Aaron Bono" <postgresql@aranya.com>)
List pgsql-sql
On Tue, Jul 18, 2006 at 10:46:29AM +0530, Penchalaiah P. wrote:
> Can u let me know if at all any system defined variable exists to check
> whether insert , update , and delete is successfully executed in a
> stored procedure........
> 
> So that I can perform some steps based on the  result of execution if
> possible please send me the sample code...............

Depending on what you mean by "successfully executed," see "Obtaining
the Result Status" or "Trapping Errors" in the PL/pgSQL documentation
(error trapping is available in 8.0 and later).

http://www.postgresql.org/docs/8.1/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS
http://www.postgresql.org/docs/8.1/interactive/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING

-- 
Michael Fuhr


pgsql-sql by date:

Previous
From: "Penchalaiah P."
Date:
Subject: hi let me know the solution to this question
Next
From: Curtis Scheer
Date:
Subject: How to pass array of values to a stored procedure