| От | Tom Lane |
|---|---|
| Тема | Re: update with no changes |
| Дата | |
| Msg-id | 3085805.1637342549@sss.pgh.pa.us обсуждение |
| Ответ на | Re: update with no changes (Marcos Pegoraro <marcos@f10.com.br>) |
| Список | pgsql-hackers |
Marcos Pegoraro <marcos@f10.com.br> writes: > But it takes resources for other operations, right ? > I think this is not unusual. If an user double click on a grid, just sees a > record and clicks ok to save, probably that application calls an update > instead of seeing if some field were changed before that. [ shrug... ] As David said, if you think that it's important to have such a check in a particular application, use a trigger to check it. There's one built-in, you don't even need an extension: https://www.postgresql.org/docs/current/functions-trigger.html We're not going to make that happen by default though, because it'd be a net drag on better-written applications. regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера