| От | Bill |
|---|---|
| Тема | Re: Trigger function is not called |
| Дата | |
| Msg-id | 48B34C60.4090306@dbginc.com обсуждение исходный текст |
| Ответ на | Re: Trigger function is not called (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
You'd have the same problem. By the time the trigger sees it, the row > has already been converted to the table's column datatype(s), so any > exception associated with a datatype or domain would be thrown already. > > A lot of people seem to have trouble with this concept; I dunno what > data representation they think the trigger is working on... > > If you want to enforce constraints for a table in the trigger, you can > do that, but it's not going to work to try to mix and match > trigger-based and datatype-based restrictions. > > regards, tom lane > > > I have no problem with the concept now that I understand it. It is just different than InterBase and Firebird which I have done a lot of work with lately. Thanks very much for your help. Bill
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера