Ignore Some Updates

From: "cnliou" <cnliou(at)so-net(dot)net(dot)tw>
To: "" <pgsql-performance(at)postgresql(dot)org>
Subject: Ignore Some Updates
Date: 2004-01-13 03:07:24
Message-ID: 1073963244.78843.cnliou@so-net.net.tw
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Dear developers,

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.

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
to reduce some disk load and prevent some "holes" resulted
from the delete (a consequence of update) in that table?

Regards,
CN

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2004-01-13 04:59:35 Re: Ignore Some Updates
Previous Message Shankar K 2004-01-12 21:45:45 Postgres on Netapp