| От | Tom Lane |
|---|---|
| Тема | Re: Trigger function is not called |
| Дата | |
| Msg-id | 17366.1219718500@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Trigger function is not called (Bill <pg@dbginc.com>) |
| Ответы |
Re: Trigger function is not called
|
| Список | pgsql-general |
Bill <pg@dbginc.com> writes:
> I removed the domain from the category_id and version columns leaving
> the following table, trigger function and trigger. The trigger function
> is still not called when I insert a new row. Any other ideas?
You're still expecting the trigger to get invoked before any constraints
are enforced (the NOT NULLs being the problem here, I think). Again,
you can enforce things through a trigger or through a table constraint,
but mixing and matching won't work too well.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера