MERGE vs REPLACE

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: MERGE vs REPLACE
Date: 2005-11-11 20:01:55
Message-ID: 200511112101.56178.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

It seems to me that it has always been implicitly assumed around here
that the MERGE command would be a substitute for a MySQL-like REPLACE
functionality. After rereading the spec it seems that this is not the
case. MERGE always operates on two different tables, which REPLACE
doesn't do.

That said, what kind of support for insert-or-update-this-row do we want
to provide, if any? Should it be a REPLACE command, an extension of
the INSERT command, a modication of the MERGE syntax, or something
else?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2005-11-11 20:08:05 Re: MERGE vs REPLACE
Previous Message Bruno Wolff III 2005-11-11 19:22:46 Re: someone working to add merge?