Re: WIP: Triggers on VIEWs - Mailing list pgsql-hackers

From Dean Rasheed
Subject Re: WIP: Triggers on VIEWs
Date
Msg-id AANLkTi=0NexK-wYOd7CpoWPb+VOzqb3KwgyLU6TgHfZZ@mail.gmail.com
Whole thread Raw
In response to WIP: Triggers on VIEWs  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: WIP: Triggers on VIEWs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 15 August 2010 18:38, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> There are still a number of things left todo:
>  - extend ALTER VIEW with enable/disable trigger commands

On further reflection, I wonder if the ability to disable VIEW
triggers is needed/wanted at all. I just noticed that while it is
possible to disable a RULE on a TABLE, it is not possible to do so on
VIEW. This certainly makes sense for the _RETURN rule, although
possibly some people might have a use for disabling other rules on
views. The situation with triggers is similar - disabling an INSTEAD
OF trigger would be pointless, and could only lead to errors when
updating the view. Some people may have a use case for disabling
BEFORE and AFTER statement triggers on views, but I suspect that the
number of such cases is small, and I'm tempted to omit this, for now
at least.

Thoughts?
- Dean


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Todays git migration results
Next
From: Tom Lane
Date:
Subject: Re: Git migration timeline