... - Mailing list pgsql-general

From Doug Smith
Subject ...
Date
Msg-id 000c01bdf3b0$5aecbd60$f61fe618@here.the-bridge.net
Whole thread Raw
List 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@the-bridge.net

pgsql-general by date:

Previous
From: Steve Doliov
Date:
Subject: Re: [GENERAL] Making NULLs visible.
Next
From: Thomas Good
Date:
Subject: Re: [GENERAL] Making NULLs visible.