Re: MERGE vs REPLACE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MERGE vs REPLACE
Дата
Msg-id 21406.1131741758@sss.pgh.pa.us
обсуждение исходный текст
Ответ на MERGE vs REPLACE  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: MERGE vs REPLACE  (Matteo Beccati <php@beccati.com>)
Re: MERGE vs REPLACE  ("Jim C. Nasby" <jnasby@pervasive.com>)
Re: MERGE vs REPLACE  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> 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.

Normally I'd plump for following the standard ... but AFAIR, we have had
bucketloads of requests for REPLACE functionality, and not one request
for spec-compatible MERGE.  If, as it appears, full-spec MERGE is also a
whole lot harder and slower than REPLACE, it seems that we could do
worse than to concentrate on doing REPLACE for now.  (We can always come
back to MERGE some other day.)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Brusser, Michael"
Дата:
Сообщение: Re: How to find a number of connections
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: MERGE vs REPLACE