| От | Daniel Schuchardt |
|---|---|
| Тема | Re: Inheritance and such |
| Дата | |
| Msg-id | d2pkgm$1n1s$1@news.hub.org обсуждение исходный текст |
| Ответ на | Re: Inheritance and such (Stephane Bortzmeyer <bortzmeyer@nic.fr>) |
| Список | pgsql-general |
Stephane Bortzmeyer schrieb: > >I have a problem which MAY be in the same category. > >CREATE TABLE base ( > id serial not null primary key, > <some base columns> >); > >CREATE TABLE specialized ( ><some specialized columns> >) INHERITS base; > >Now, I try to set up a trigger AFTER UPDATE ON base but, when I update >"specialized", the trigger is not called. Same thing with CREATE or >DELETE. I have to define the trigger to be AFTER UPDATE ON >specialized. Is it normal? > > > Yes, thats known. You have to define a trigger on each child table. You can point that trigger on the same function. Daniel.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера