Re: someone working to add merge?

Поиск
Список
Период
Сортировка
От John Hansen
Тема Re: someone working to add merge?
Дата
Msg-id 5066E5A966339E42AA04BA10BA706AE50A93B1@rodrick.geeknet.com.au
обсуждение исходный текст
Ответ на someone working to add merge?  (Jaime Casanova <systemguards@gmail.com>)
Список pgsql-hackers
Jaime Casanova Wrote:
> But MERGE isn't REPLACE...
>
> REPLACE will delete old records to insert new ones; MERGE try
> to insert and if the record exists then can UPDATE just a few
> values, maybe incrementing them with a value (all the
> calculation are doing by the MERGE)

That sounds like MySQL's 'INSERT INTO ... ON DUPLICATE KEY UPDATE',
which they recommend over REPLACE anyways.



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: someone working to add merge?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Multi-table-unique-constraint