Re: Catching errors - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Catching errors
Date
Msg-id 20040624010625.GC27876@dcc.uchile.cl
Whole thread Raw
In response to Catching errors  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
On Wed, Jun 23, 2004 at 03:54:25PM -0700, CSN wrote:
> Is it possible to "catch" errors in pl/pgsql? For
> example, instead of the function exiting with (from an
> INSERT attempt):
>
> ERROR:  duplicate key violates unique constraint
> "user_name"

No :-(

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Tulio: oh, para qué servirá este boton, Juan Carlos?
Policarpo: No, aléjense, no toquen la consola!
Juan Carlos: Lo apretaré una y otra vez.


pgsql-general by date:

Previous
From: Paul Thomas
Date:
Subject: Re: pgHoster.com woes and looking for a new host
Next
From: Dennis Gearon
Date:
Subject: LIKE and encoding and locale