Re: INSERT ... ON CONFLICT syntax issues

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: INSERT ... ON CONFLICT syntax issues
Дата
Msg-id CAM3SWZSy_7A+St+1cHqYqTPmM3PSp6mJ_YQhDUziuJ4qF4XP3Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: INSERT ... ON CONFLICT syntax issues  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Mon, Apr 27, 2015 at 1:19 PM, Peter Eisentraut <peter_e@gmx.net> wrote:
> it appears that they are using quite a different syntax.  The ON
> CONFLICT clause is attached to a constraint, specifying the default
> action for that constraint.  The INSERT command can then override this
> default choice.  I think.

Well, MySQL's ON DUPLICATE KEY UPDATE thing is pretty close to what I
have. I intend CONFLICT as a broader term, which is somewhat similar
to SQLite (and is not needlessly verbose).

-- 
Peter Geoghegan



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

Предыдущее
От: Dave Jones
Дата:
Сообщение: Re: Temporal extensions
Следующее
От: Fabien COELHO
Дата:
Сообщение: PATCH: pgbench - remove thread fork-emulation