Re: ask for review of MERGE

Поиск
Список
Период
Сортировка
От Boxuan Zhai
Тема Re: ask for review of MERGE
Дата
Msg-id AANLkTikg1jSBAY+tQQi=xP1fBbwLgHms9HawsH6wZ0_M@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ask for review of MERGE  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi,
 
I considered the empty source table situation again. I think it is correct to upsert nothing in this case.
 
Back to the original logic of MERGE command, it is main purpose is to add the supplementary data from the source table into the target table. Thus, an empty source table means no input data is available, so no upsert is needed in target table.
 
 
Regards,
Boxuan

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Domains versus arrays versus typmods
Следующее
От: Robert Haas
Дата:
Сообщение: Re: leaky views, yet again