From: "Doug Smith" <doug(at)the-bridge(dot)net>
To: <pgsql-general(at)postgreSQL(dot)org>
Subject:
Date: 1998-10-09 18:12:19
Message-ID: 000c01bdf3b0$5aecbd60$f61fe618@here.the-bridge.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm trying to do some error handling with Postgres, ie.=20
Query failed: ERROR: Cannot insert a duplicate key into a unique index=20

I know what the problem is but don't know how to handle the error.

In Oracle pl/sql I would use 'exception <error#> | <error msg>'

but with postgres and can't find any doc on how to work around this.

Any help would be greatly appreciated.

Doug...

doug(at)the-bridge(dot)net

Browse pgsql-general by date

  From Date Subject
Next Message Steve Doliov 1998-10-09 19:03:48 Re: [GENERAL] Making NULLs visible.
Previous Message Bruce Momjian 1998-10-09 16:36:54 Re: [GENERAL] Making NULLs visible.