pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Ignore Some Updates 2+ messages / 2 participants [nested] [flat]
* Ignore Some Updates @ 2004-01-13 03:07 cnliou <cnliou@so-net.net.tw> 2004-01-13 04:59 ` Re: Ignore Some Updates Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: cnliou @ 2004-01-13 03:07 UTC (permalink / raw) To: 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Ignore Some Updates 2004-01-13 03:07 Ignore Some Updates cnliou <cnliou@so-net.net.tw> @ 2004-01-13 04:59 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2004-01-13 04:59 UTC (permalink / raw) To: cnliou@so-net.net.tw; +Cc: pgsql-performance "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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-01-13 04:59 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2004-01-13 03:07 Ignore Some Updates cnliou <cnliou@so-net.net.tw> 2004-01-13 04:59 ` Tom Lane <tgl@sss.pgh.pa.us>
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