X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 64DFE9DC878 for ; Mon, 13 Mar 2006 14:09:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11774-02 for ; Mon, 13 Mar 2006 14:09:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by postgresql.org (Postfix) with ESMTP id 1A00E9DC843 for ; Mon, 13 Mar 2006 14:09:36 -0400 (AST) Received: from [213.162.97.75] (helo=mail.metronet.co.uk) by pih-relay05.plus.net with esmtp (Exim) id 1FIrTz-0006mN-Gi; Mon, 13 Mar 2006 18:09:28 +0000 Received: from mainbox.archonet.com (unknown [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id C71B140DC53; Mon, 13 Mar 2006 17:39:26 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 4312E15EA4; Mon, 13 Mar 2006 17:39:26 +0000 (GMT) Message-ID: <4415AE4E.9000402@archonet.com> Date: Mon, 13 Mar 2006 17:39:26 +0000 From: Richard Huxton User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: "Christian Paul B. Cosinas" Cc: pgsql-sql@postgresql.org Subject: Re: Constraint Error effect on PostgreSQL References: <02d301c64690$c4af1000$1e21100a@ghwk02002147> In-Reply-To: <02d301c64690$c4af1000$1e21100a@ghwk02002147> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.121 required=5 tests=[AWL=0.121] X-Spam-Score: 0.121 X-Spam-Level: X-Archive-Number: 200603/196 X-Sequence-Number: 24542 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? No long-term effects. Obviously it takes time to run one million queries even if they are all inserts that fail. -- Richard Huxton Archonet Ltd