| От | Marc G. Fournier |
|---|---|
| Тема | Re: simple trigger question ... |
| Дата | |
| Msg-id | 20030403185938.D7340@hub.org обсуждение исходный текст |
| Ответ на | Re: simple trigger question ... (Rod Taylor <rbt@rbt.ca>) |
| Список | pgsql-sql |
On Thu, 3 Apr 2003, Rod Taylor wrote: > > 'K, that makes it workable ... final question (I hope!) ... RULEs vs > > TRIGGERs? I ended up doing it as a RULE, since I could do it without a > > function ... but is there a reason why that is a Bad Idea? Or in a case > > like this, it doesn't really matter? > > Rules are per statement, not per row. > > An INSERT INTO ... SELECT ... statement will cause a single execution of > the rule even if you insert several hundred rows. Ah, okay, definitely not a good thing to use then ... thanks, will finish what I started with TRIGGERs instead :)
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера