| От | Tom Lane |
|---|---|
| Тема | Re: Disabling Trigger |
| Дата | |
| Msg-id | 25010.1125438045@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Disabling Trigger ("Prasad dev" <esteem3300@hotmail.com>) |
| Список | pgsql-novice |
"Prasad dev" <esteem3300@hotmail.com> writes:
> Currently i am using 8.0.3 , what i mean by it doesn't work is, when i set
> the tgenabled to FALSE for that particular trigger it still fires the
> trigger unless there is something more to it which i doesn't know.
If you start a fresh session, you'll probably find that it doesn't fire
the trigger anymore.
The trick is to get existing sessions to notice that you changed the
pg_trigger row; they don't watch for that. What they do watch for is
updates of pg_class, which is why a dummy update of the table's pg_class
row might help.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера