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: (view raw, whole thread or download thread mbox)
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]>)
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-2017 The PostgreSQL Global Development Group