Re: MERGE vs REPLACE

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: MERGE vs REPLACE
Дата
Msg-id 200511132207.42881.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: MERGE vs REPLACE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: MERGE vs REPLACE  (Petr Jelinek <pjmodos@seznam.cz>)
Список pgsql-hackers
Tom Lane wrote:
> IIRC, SQL's MERGE deals with this by offering two quite separate
> specifications of what to do when there is or isn't already a
> matching row.

In that regard, MERGE is quite flexible, but MERGE doesn't address the 
point of REPLACE, because MERGE requires *two* tables as input, whereas 
REPLACE only takes *one*.  Unless someone can show that you can trick 
MERGE into doing the REPLACE job anyway, we're not discussing the same 
thing.

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


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.1 substring bug?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Supporting NULL elements in arrays