Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxyFh-0006PV-Ak for pgsql-novice@arkaria.postgresql.org; Thu, 28 May 2015 13:53:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxyFg-0007Fq-Ka for pgsql-novice@arkaria.postgresql.org; Thu, 28 May 2015 13:53:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxyFf-0007Ff-Mf; Thu, 28 May 2015 13:53:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YxyFc-0002gd-Ot; Thu, 28 May 2015 13:53:39 +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 t4SDrXvV010238; Thu, 28 May 2015 09:53:33 -0400 From: Tom Lane To: Shashwat Arghode cc: pgsql-novice@postgresql.org, pgsql-sql@postgresql.org Subject: Re: Drop or disable or bypass "_return" rule on select on a view. In-reply-to: References: Comments: In-reply-to Shashwat Arghode message dated "Thu, 28 May 2015 11:53:45 +0530" Date: Thu, 28 May 2015 09:53:33 -0400 Message-ID: <10237.1432821213@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-novice Precedence: bulk Sender: pgsql-novice-owner@postgresql.org Shashwat Arghode writes: > I am using postgres 9.3.4 and have an on_select rule "_return" on a view. > I want to drop or disable or bypass that rule. > Is there any way it can be done without dropping the view?? No. I don't exactly see the point, either --- what do you imagine a view without an ON SELECT rule would be good for? Perhaps what you want is to replace the view with CREATE OR REPLACE VIEW, which is basically equivalent to updating its ON SELECT rule. But simply dropping the rule without immediately replacing it would leave the view nonfunctional. regards, tom lane -- Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-novice