| От | Andrew Dunstan |
|---|---|
| Тема | Re: minimal update trigger |
| Дата | |
| Msg-id | 47BC443E.1090507@dunslane.net обсуждение исходный текст |
| Ответ на | Re: minimal update trigger (David Fetter <david@fetter.org>) |
| Список | pgsql-hackers |
David Fetter wrote: > On Tue, Feb 19, 2008 at 09:32:30PM -0500, Andrew Dunstan wrote: > >> As discussed a little while back, I would like to add a generic >> trigger function which will force an update to skip if the new and >> old tuples are identical. >> > > This one has lots of use cases. Did the earlier discussion settle on > whether there should be a GUC and/or CREATE DATABASE and/or initdb > option for this? > > None of the above. All we will be providing is a trigger function. You would create the trigger as with any other trigger: | CREATE TRIGGER _min BEFORE UPDATE ON mytable FOR EACH ROW EXECUTE PROCEDURE pg_minimal_update(); cheers andrew |
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера