Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X7Q9w-0006KG-9k for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Jul 2014 14:26:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X7Q9v-0007Jn-58 for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Jul 2014 14:26:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X7Q9r-0007Cp-Md for pgsql-bugs@postgresql.org; Wed, 16 Jul 2014 14:26:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X7Q9o-0004Pj-6M for pgsql-bugs@postgresql.org; Wed, 16 Jul 2014 14:26:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s6GEPxcH026069; Wed, 16 Jul 2014 10:25:59 -0400 From: Tom Lane To: Pavel Golub cc: "Silambarasan Viswanathan" , "pgsql-bugs@postgresql.org" Subject: Re: Disable View rule In-reply-to: <1526870184.20140716163948@gf.microolap.com> References: <4B7F9FA45B232F4EB25D19BA168F6F01019DE5F3@EX-BE-002-SV1.shared.themessagecenter.com> <1526870184.20140716163948@gf.microolap.com> Comments: In-reply-to Pavel Golub message dated "Wed, 16 Jul 2014 16:39:48 +0300" Date: Wed, 16 Jul 2014 10:25:59 -0400 Message-ID: <26068.1405520759@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Pavel Golub 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