Re: [HACKERS] cannot set view triggers to replica

2015-06-05 Thread Kevin Grittner
Michael Paquier wrote:> On Sat, May 30, 2015 at 11:47 AM, Peter Eisentraut wrote: >> the ALTER TABLE ... ENABLE RULE commands only allow acting on>> tables, even >> though rules can also exist on views and materialized views. > > I think that ALTER VIEW and ALTER MATERIALIZED VIEW should be

Re: [HACKERS] cannot set view triggers to replica

2015-05-31 Thread Dean Rasheed
On 30 May 2015 at 03:47, Peter Eisentraut wrote: > It appears to be an omission that ALTER TABLE ... ENABLE TRIGGER and > similar commands don't allow acting on views, even though we now have > triggers on views. > It was deliberately omitted from the original INSTEAD OF triggers patch because it

Re: [HACKERS] cannot set view triggers to replica

2015-05-30 Thread Michael Paquier
On Sat, May 30, 2015 at 11:47 AM, Peter Eisentraut wrote: > It appears to be an omission that ALTER TABLE ... ENABLE TRIGGER and > similar commands don't allow acting on views, even though we now have > triggers on views. True, now isn't it something that should be as well part of ALTER VIEW? >

[HACKERS] cannot set view triggers to replica

2015-05-29 Thread Peter Eisentraut
It appears to be an omission that ALTER TABLE ... ENABLE TRIGGER and similar commands don't allow acting on views, even though we now have triggers on views. Similarly, the ALTER TABLE ... ENABLE RULE commands only allow acting on tables, even though rules can also exist on views and materialized