| От | Neil Conway |
|---|---|
| Тема | Re: Catching "UPDATE 0" |
| Дата | |
| Msg-id | 87r80gyrv2.fsf@mailbox.samurai.com обсуждение |
| Ответ на | Catching "UPDATE 0" (<enio@pmpf.rs.gov.br>) |
| Список | pgsql-hackers |
<enio@pmpf.rs.gov.br> writes: > I am trying to catch the "UPDATE 0" condition in postgresql. > I have tried it using triggers, but they are only fired when there > effectively is an update. You could try using an AFTER STATEMENT trigger (which will be invoked even if zero rows are updated), and checking the size of the set of modified rows ... except that we currently don't provide a way for per-statement triggers to access the set of modified tuples. If someone implements that functionality (which is on the TODO list), that would be a clean solution to your problem. -Neil
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера