Re: Problems handling errors in PL/pgSQL - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Problems handling errors in PL/pgSQL
Date
Msg-id web-43221@davinci.ethosmedia.com
Whole thread Raw
In response to Re: Problems handling errors in PL/pgSQL  ("Joe Conway" <jconway2@home.com>)
List pgsql-sql
Joe,

> I'm not sure if this is what you're looking for, but in 7.1 you can
> do
> something like:
> 
>     INSERT INTO bar(barpk,foopk) VALUES(barpkval,foopkval);
>     GET DIAGNOSTICS rows = ROW_COUNT;
>     -- do something based on rows --

There's several other ways I can check, as well.  However, I was hoping
for some way to avoid adding anything to a couple of dozen functions
which are already debugged.

-Josh 

P.S. Does anyone yet have full documentation on GET DIAGNOSICS?
Roberto?

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: "Joe Conway"
Date:
Subject: Re: Problems handling errors in PL/pgSQL
Next
From: Tom Lane
Date:
Subject: Re: pg_dump bug? (7.1)