pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Christian Paul B. Cosinas <cpc@cybees.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Constraint Error effect on PostgreSQL
Date: Mon, 13 Mar 2006 17:39:26 +0000
Message-ID: <4415AE4E.9000402@archonet.com> (raw)
In-Reply-To: <02d301c64690$c4af1000$1e21100a@ghwk02002147>
References: <02d301c64690$c4af1000$1e21100a@ghwk02002147>

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



view thread (2+ messages)

Message-ID: <4415AE4E.9000402@archonet.com>
Permalink:  ../4415AE4E.9000402@archonet.com/
Also on:    postgresql.org/message-id/4415AE4E.9000402@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, cpc@cybees.com
  Subject: Re: Constraint Error effect on PostgreSQL
  In-Reply-To: <4415AE4E.9000402@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox