Re: [SQL] Constraint Error effect on PostgreSQL

2006-03-13 Thread Richard Huxton
Christian Paul B. Cosinas wrote: Then I have a program that insert 1(one) million times like this: Insert into unique_items(item_id) values('Item001) Ofcourse we all know that it will fail because there is already a record in the database. Would there be any bad effect on the database or none

[SQL] Constraint Error effect on PostgreSQL

2006-03-13 Thread Christian Paul B. Cosinas
Hi Fellow PostgreSQL users, Just a question here. Is there any bad effect on the PostgreSQL performance If I encounter many fails on inserting records to database with primary key column. For example I have this table CREATE TABLE unique_items ( item_id text NOT NULL, CONSTRAINT unique_item