| От | brian |
|---|---|
| Тема | Re: An alternatives to rules and triggers |
| Дата | |
| Msg-id | 463C0898.7020706@zijn-digital.com обсуждение исходный текст |
| Ответ на | An alternatives to rules and triggers (Glen Eustace <geustace@godzone.net.nz>) |
| Список | pgsql-general |
Glen Eustace wrote: > Is there some way that one can determine whether a table has changed > i.e. an insert, delete, update, without having to resort to setting a > flag in another table using a triger or rule. > > I was wondering whether one of the system relations keep track of > whether a table has been modifed. > How soon do you need to know that a change has occured? I suppose one could monitor the log. You'd want to keep track of where in the log your script read up to the last time, in order to avoid having to run through from the beginning each time. And you'd want to ensure that you scan the log right before it's rotated, of course. A bit of a hack ... b
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера