Re: How to avoid UPDATE on same data in table ? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to avoid UPDATE on same data in table ?
Date
Msg-id 2955.1580663887@sss.pgh.pa.us
Whole thread Raw
In response to How to avoid UPDATE on same data in table ?  (Condor <condor@stz-bg.com>)
Responses Re: How to avoid UPDATE on same data in table ?  (Andreas Kretschmer <andreas@a-kretschmer.de>)
List 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 by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: How to avoid UPDATE on same data in table ?
Next
From: Andreas Kretschmer
Date:
Subject: Re: How to avoid UPDATE on same data in table ?