| От | Bill |
|---|---|
| Тема | Re: Trigger function is not called |
| Дата | |
| Msg-id | 48B37BCA.1000901@dbginc.com обсуждение исходный текст |
| Ответ на | Re: Trigger function is not called (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
I knew I was missing something really simple. I changed the trigger to before insert and everything works perfectly. Thanks again for your help. I learned a lot.Bill <pg@dbginc.com> writes:The thing that has me confused is that the following table, trigger and trigger function work perfectly and the primary key for this table is also bigint not null.Actually, after looking closer, I think the problem with your previous example is that you created an ON UPDATE trigger not an ON INSERT trigger. Table constraints are indeed enforced after before-triggers fire, as a quick look at the code proves. Sorry for the misinformation. regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера