Re: views & triggers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: views & triggers
Дата
Msg-id 21377.989249220@sss.pgh.pa.us
обсуждение исходный текст
Ответ на views & triggers  (Lieven Van Acker <lieven@elisa.be>)
Список pgsql-general
Lieven Van Acker <lieven@elisa.be> writes:
> does Postgresql 7.1 support triggers on a view actions?

No, triggers apply to actual tuple insertions/updates/deletions,
and a view never has any of those.  You'd need to set the triggers
on the underlying real tables, instead.

> Problem is I cannot easily set the trigger on the tables because of
> permission issues...

I think the long-term plan is for trigger functions to execute setuid
to the table owner.  Will that help?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Permissions and views.
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: a primer on trigger?