From: Tom Lane <tgl@sss.pgh.pa.us>
To: Condor <condor@stz-bg.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: How to avoid UPDATE on same data in table ?
Date: Sun, 02 Feb 2020 12:18:07 -0500
Message-ID: <2955.1580663887@sss.pgh.pa.us> (raw)
In-Reply-To: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com>
References: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, condor@stz-bg.com
Subject: Re: How to avoid UPDATE on same data in table ?
In-Reply-To: <2955.1580663887@sss.pgh.pa.us>
References: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com> <2955.1580663887@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox