Disable View rule

Started by Silambarasan Viswanathanover 11 years ago3 messagesbugs
Jump to latest
#1Silambarasan Viswanathan
sviswanathan@jamcracker.com

Hi
I am Silambarasan. could you help me, How to disable the View rule.

Example:
We disable Trigger constraint like
update pg_trigger set tgenabled='D'

I request to disable View rule.

Thanks & Regards
Silambarasan Viswanathan MTT

#2Pavlo Golub
pavlo.golub@cybertec.at
In reply to: Silambarasan Viswanathan (#1)
Re: Disable View rule

Hello, Silambarasan.

You wrote:

SV> Hi
SV> I am Silambarasan. could you help me, How to disable the View rule.
SV>
SV> Example:
SV> We disable Trigger constraint like
SV> update pg_trigger set tgenabled='D'
SV>
SV> I request to disable View rule.
SV>
SV> Thanks & Regards
SV> Silambarasan Viswanathan MTT

ALTER TABLE view_name DISABLE RULE rewrite_rule_name;

--
With best wishes,
Pavel mailto:pavel@gf.microolap.com

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Pavlo Golub (#2)
Re: Disable View rule

Pavel Golub <pavel@microolap.com> writes:

You wrote:
SV> I am Silambarasan. could you help me, How to disable the View rule.

ALTER TABLE view_name DISABLE RULE rewrite_rule_name;

The code won't let you do that; but I wonder what the OP thinks would
happen if it did. A view doesn't have any underlying storage that could
be selected from if the on-select rule were to go away.

regards, tom lane

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs