Re: Problems handling errors in PL/pgSQL

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Problems handling errors in PL/pgSQL
Date: 2001-04-23 23:31:19
Message-ID: web-43221@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-04-23 23:36:49 Re: pg_dump bug? (7.1)
Previous Message Joe Conway 2001-04-23 23:11:53 Re: Problems handling errors in PL/pgSQL