agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shashwat Arghode <shashwatarghode@gmail.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Drop or disable or bypass "_return" rule on select on a view.
Date: Thu, 28 May 2015 09:53:33 -0400
Message-ID: <10237.1432821213@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGgbXsz-kN=j67bi93_38P0j3cFkJw61YnBZJC3LYGmM-LZj0A@mail.gmail.com>
References: <CAGgbXsz-kN=j67bi93_38P0j3cFkJw61YnBZJC3LYGmM-LZj0A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-novice>

Shashwat Arghode <shashwatarghode@gmail.com> 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



view thread (8+ messages)  latest in thread

Message-ID: <10237.1432821213@sss.pgh.pa.us>
Permalink:  ../10237.1432821213@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10237.1432821213@sss.pgh.pa.us

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, shashwatarghode@gmail.com, pgsql-novice@postgresql.org
  Subject: Re: Drop or disable or bypass "_return" rule on select on a view.
  In-Reply-To: <10237.1432821213@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox