| От | Tom Lane |
|---|---|
| Тема | Re: Ignore Some Updates |
| Дата | |
| Msg-id | 8021.1073969975@sss.pgh.pa.us обсуждение |
| Ответ на | Ignore Some Updates ("cnliou" <cnliou@so-net.net.tw>) |
| Список | 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
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера