Re: Use ctid in where clause in update from statement

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Use ctid in where clause in update from statement
Дата
Msg-id 1c9e7d1d-ea2e-8f48-7a05-268254a9aad5@gmx.net
обсуждение исходный текст
Ответ на Re: Use ctid in where clause in update from statement  (Dirk Mika <Dirk.Mika@mikatiming.de>)
Ответы Re: Use ctid in where clause in update from statement  (Dirk Mika <Dirk.Mika@mikatiming.de>)
Список pgsql-general
Dirk Mika schrieb am 01.07.2019 um 13:18:
> The problem with the INSERT ON CONFLICT is that an insert is tried here first, which may fire triggers.
> 
> In my case there is a fairly expensive INSERT Trigger ON EACH ROW, which I would like to avoid.

The insert trigger will only be fired if an INSERT actually takes place. 

If INSERT ON CONFLICT results in an UPDATE (or a DO NOTHING), no INSERT trigger will be fired.




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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Use ctid in where clause in update from statement
Следующее
От: Dirk Mika
Дата:
Сообщение: Re: Use ctid in where clause in update from statement