| От | Michael Paesold |
|---|---|
| Тема | Re: Rules and Triggers |
| Дата | |
| Msg-id | 002101c25964$e5e4e460$4201a8c0@beeblebrox обсуждение |
| Ответ на | Re: Rules and Triggers ("Adam Erickson" <adamre@cox.net>) |
| Список | pgsql-sql |
Ross J. Reedstrom wrote: > An important thing to remember about rules vs. triggers: Rules operate > on an SQL _query_ that involves the table (or view) that the rule is > attached to, whereas triggers operate on the individual _tuples_ of the > table they are attached to. Rules act to rewrite the incoming query, > at the very earliest step: just after parsing, but before planning and > optimizing. So rules _always_ act first. Triggers act when storage gets > hit: when the optimizer has choosen a plan, and passes it to the executor > for, well, execution. > > Ross Thanks alot, again I understand a little bit more. You're great, guys! Regards, Michael Paesold
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера