Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group