From: Tom Lane <tgl@sss.pgh.pa.us>
To: cnliou@so-net.net.tw
Cc: pgsql-performance@postgresql.org
Subject: Re: Ignore Some Updates
Date: Mon, 12 Jan 2004 23:59:35 -0500
Message-ID: <8021.1073969975@sss.pgh.pa.us> (raw)
In-Reply-To: <1073963244.78843.cnliou@so-net.net.tw>
References: <1073963244.78843.cnliou@so-net.net.tw>
"cnliou" <cnliou@so-net.net.tw> writes:
> I wonder it happens to systems where inefficient update
> SQL's are used like this:
> UPDATE MyTable SET MyColumn=1234
> Question arises when the value of MyColumn is already 1234
> before the update.
We have to fire UPDATE triggers in any case.
> If I am right, even when the to-be-updated column values
> equal to the new values, the core never hates to update that
> row anyway. If so, is it wise or not to adjust the core for
> lazy SQL users to ignore such "meaningless" updates in order
Seems like penalizing the intelligent people (by adding useless
comparisons) in order to reward the "lazy" ones.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, cnliou@so-net.net.tw
Subject: Re: Ignore Some Updates
In-Reply-To: <8021.1073969975@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