pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: K Parker <kparker@eudoramail.com>
To: pgsql-sql@postgresql.org
Subject: RE: INSERT [IGNORE] INTO TABLE
Date: Tue, 31 Oct 2000 11:42:22 -0800
Message-ID: <DHOKJJIEIENOBAAA@shared1-mail.whowhere.com> (raw)

>Not a good feature for me.

Me neither, but...

>Check existence and then insert or update.

At least once a week I seem to be responding to this exact same suggestion.  Somebody _please_ tell me if I'm the only one in the whole world who worries about race conditions?  What's wrong with just making sure there's a proper unique key, and then just inserting the row?  The returned error message will tell you if a failure is due to duplicate key, missing non-null column, or an actual disaster.



Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com



view thread (7+ messages)  latest in thread

Message-ID: <DHOKJJIEIENOBAAA@shared1-mail.whowhere.com>
Permalink:  ../DHOKJJIEIENOBAAA@shared1-mail.whowhere.com/
Also on:    postgresql.org/message-id/DHOKJJIEIENOBAAA@shared1-mail.whowhere.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: kparker@eudoramail.com
  Subject: Re: INSERT [IGNORE] INTO TABLE
  In-Reply-To: <DHOKJJIEIENOBAAA@shared1-mail.whowhere.com>
  References: <DHOKJJIEIENOBAAA@shared1-mail.whowhere.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