Ignore Some Updates

Поиск
Список
Период
Сортировка
От cnliou
Тема Ignore Some Updates
Дата
Msg-id 1073963244.78843.cnliou@so-net.net.tw
обсуждение исходный текст
Ответы Re: Ignore Some Updates  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

В списке pgsql-performance по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: COUNT & Pagination
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Ignore Some Updates