Re: Disable View rule

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Golub <pavel(at)microolap(dot)com>
Cc: "Silambarasan Viswanathan" <sviswanathan(at)jamcracker(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Disable View rule
Date: 2014-07-16 14:25:59
Message-ID: 26068.1405520759@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Pavel Golub <pavel(at)microolap(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-07-16 14:44:01 Re: SQLSTATE 00000 and message level LOG get logged when a server process crashes
Previous Message Tom Lane 2014-07-16 14:20:02 Re: BUG #10972: string_agg function incorrectly concatenating varying delimiter