duplicate key violates unique constraint - Mailing list pgsql-sql

From Shavonne Marietta Wijesinghe
Subject duplicate key violates unique constraint
Date
Msg-id 014401c87887$a8fed450$3102a8c0@dream
Whole thread Raw
Responses Re: duplicate key violates unique constraint
List pgsql-sql
Hello
 
During an "INSERT INTO" I get an "Error - duplicate key violates unique constraint...."
 
Is there any way, that i can test the error. Something like this??
 
IF error = "duplicate key violates unique constraint" then
    do something
else
    insert into
end if
 
 
Thanks
 
Shavonne

pgsql-sql by date:

Previous
From: TJ O'Donnell
Date:
Subject: Re: Deploying PostgreSQL on virtualized hardware
Next
From: Teemu Torma
Date:
Subject: Re: duplicate key violates unique constraint