Re: views & triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lieven Van Acker <lieven(at)elisa(dot)be>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: views & triggers
Date: 2001-05-07 15:27:00
Message-ID: 21377.989249220@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lieven Van Acker <lieven(at)elisa(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-07 15:42:16 Re: Problems w. SERIAL
Previous Message Jan Wieck 2001-05-07 15:09:29 Re: a primer on trigger?