From: Tom Lane <tgl@sss.pgh.pa.us>
To: DI Hasenöhrl <i.hasenoehrl@aon.at>
Cc: pgsql-sql@postgresql.org
Subject: Re: Kind of error-handler in a pgsql function
Date: Wed, 04 Jul 2001 20:38:25 -0400
Message-ID: <1517.994293505@sss.pgh.pa.us> (raw)
In-Reply-To: <00c401c104c0$b9a03200$01011eac@irina>
References: <00c401c104c0$b9a03200$01011eac@irina>
=?iso-8859-1?Q?DI_Hasen=F6hrl?= <i.hasenoehrl@aon.at> writes:
> I want to know the result of an insert or update, because I call these func=
> tions from an Access form and the next steps of the program depend on these=
> results.
See the FOUND variable (if you just want to test zero or not-zero rows
processed) or the SET DIAGNOSTICS statement to get the row count.
There is no way to trap an error inside a plpgsql function, however.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, i.hasenoehrl@aon.at
Subject: Re: Kind of error-handler in a pgsql function
In-Reply-To: <1517.994293505@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox