Re: Bulk Insert / Update / Delete

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Edmund Dengler <edmundd(at)eSentire(dot)com>
Cc: Philip Boonzaaier <phil(at)cks(dot)co(dot)za>, Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Bulk Insert / Update / Delete
Date: 2003-08-21 17:31:18
Message-ID: 20030821173118.GA5449@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Aug 21, 2003 at 12:56:18 -0400,
Edmund Dengler <edmundd(at)eSentire(dot)com> wrote:
> Wasn't there a feature in some SQL database which was the equivalent of
> UPDATE OR INSERT ... based on the primary key? Would this accomplish what
> you want (I know that I have a desire for this feature a couple of times,
> as I simply have code or triggers to essentially do the equivalent)? Is
> this a desirable feature for Postgresql?

I remember people asking for the equivalent of MYSQL's REPLACE command
in previous threads.

Another alternative is allowing the clients to determine what do do after an
error so that you could try an insert first and then do an update if it
failed without aborting your transaction.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-08-21 17:35:30 Re: Bulk Insert / Update / Delete
Previous Message Edmund Dengler 2003-08-21 16:56:18 Re: Bulk Insert / Update / Delete