Re: distinguish update from insert (on conflict)

Поиск
Список
Период
Сортировка
Искать
От
Laurenz Albe
Тема
Re: distinguish update from insert (on conflict)
Дата
в 04:25:34
Msg-id
54f2f1f00aca3fed9e81b4f370c7e90192bc5062.camel@cybertec.at
Ответ на
Список
Дерево обсуждения
distinguish update from insert (on conflict) Justin Pryzby <pryzby@telsasoft.com>
Re: distinguish update from insert (on conflict) Adrian Klaver <adrian.klaver@aklaver.com>
Re: distinguish update from insert (on conflict) Justin Pryzby <pryzby@telsasoft.com>
Re: distinguish update from insert (on conflict) Fabio Ugo Venchiarutti <f.venchiarutti@ocado.com>
Re: distinguish update from insert (on conflict) Adrian Klaver <adrian.klaver@aklaver.com>
Re: distinguish update from insert (on conflict) Laurenz Albe <laurenz.albe@cybertec.at>
Justin Pryzby wrote:
> Is it still impossible to distinguish whether a row was inserted vs updated ?
> 
> The latest I can see is here:
> https://wiki.postgresql.org/wiki/UPSERT#RETURNING_behavior
> 
> ..but I'm hopeful that the 4 year old wiki page is out of date.

Maybe this answer can help you:

https://stackoverflow.com/a/39204667/6464308

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



В списке pgsql-general по дате отправления
От: Ron
Дата:
От: Thiemo Kellner
Дата:
FAQ