| От | Tom Lane |
|---|---|
| Тема | Re: Triggers and System Tables |
| Дата | |
| Msg-id | 11916.1018965558@sss.pgh.pa.us обсуждение |
| Ответ на | Triggers and System Tables (Hans-Juergen Schoenig <hs@cybertec.at>) |
| Список | pgsql-general |
Hans-Juergen Schoenig <hs@cybertec.at> writes:
> I have a brief question concerning triggers and system tables:
> Why is it not allowed to trigger a system table?
Most of the operations that modify system tables don't bother to fire
triggers ... so if you had a trigger, it would generally fail to capture
the interesting events. I'm not sure what the feasibility would be of
firing triggers everywhere that system tables are updated. Offhand I'd
be worried about whether the system is in a sufficiently self-consistent
state to support trigger execution at all those points.
It would probably also be a *really bad* idea to install a trigger that
tries to alter the row or suppress the update ;-)
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера