| От | Mark Volpe |
|---|---|
| Тема | Re: Rules aren't doing what I expect |
| Дата | |
| Msg-id | 3992BAB7.AE1D4FC3@epamail.epa.gov обсуждение исходный текст |
| Ответ на | Rules aren't doing what I expect (Mark Volpe <volpe.mark@epamail.epa.gov>) |
| Список | pgsql-sql |
The actual trigger function I'm working with is over two screens long and rather expensive to be calling twice! Perhaps I need to add another trigger that updates the log table with the correct values after the fact. Recursive triggers, fun! Thanks for the help, Mark Ang Chin Han wrote: > > Either somehow rewrite your trigger as a rule, or stick another > trigger to change the value before getting into your log table. > You might be able to reuse your trigger function, I think, just > point the trigger to that function. A bit inefficient, since it > gets called twice.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера