Re: Catching errors

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Catching errors
Date: 2004-06-24 01:06:26
Message-ID: 20040624010625.GC27876@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2004-06-24 04:18:29 LIKE and encoding and locale
Previous Message Henning Klein 2004-06-23 23:39:00 Re: FW: problems with installing postgres