Re: Inheritance and such

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: "Karl O. Pinc"
Дата:
Сообщение: Strange plpgsql performance -- arithmetic, numeric() type, arrays
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: How to query pgsql from a BASH script ?