Re: How to avoid UPDATE on same data in table ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to avoid UPDATE on same data in table ?
Дата
Msg-id 2955.1580663887@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to avoid UPDATE on same data in table ?  (Condor <condor@stz-bg.com>)
Ответы Re: How to avoid UPDATE on same data in table ?
Список pgsql-general
Condor <condor@stz-bg.com> writes:
> I'm using PostgreSQL 12.1 and trying to avoid update on table when data 
> is the same. I read somewhere if UPDATE is with the same data SQL server 
> on system level does not do update on table but don't know if that is 
> true or not.

It is not, at least not for PG (can't say about SQL Server).  But see
suppress_redundant_updates_trigger here:

https://www.postgresql.org/docs/current/functions-trigger.html

            regards, tom lane



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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: How to avoid UPDATE on same data in table ?
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: How to avoid UPDATE on same data in table ?