Hello, How can I check if the error that has occurred during an insert is because the inserted value is not unique when there are a unique error. I'm using PHP. Thanks in advance, Jonas Bengtsson ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/docs/faq.html