Re: RLS Design
От
Robert Haas
Тема
Re: RLS Design
Дата
Msg-id
CA+TgmoZPEBpGq-sXrk15W51eMJ2PD-ajzq9jv0v8XuW48xySqw@mail.gmail.com
Ответ на
Re: RLS Design (Brightwell, Adam)
Список
Дерево обсуждения
API change advice: Passing plan invalidation info from the rewriter
into the planner? Craig Ringer <craig@2ndquadrant.com>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Craig Ringer <craig@2ndquadrant.com>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Craig Ringer <craig@2ndquadrant.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Adam Brightwell <adam.brightwell@crunchydatasolutions.com>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Craig Ringer <craig@2ndquadrant.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Craig Ringer <craig@2ndquadrant.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Kevin Grittner <kgrittn@ymail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Kevin Grittner <kgrittn@ymail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: RLS Design the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Dean Rasheed <dean.a.rasheed@gmail.com>
RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Dean Rasheed <dean.a.rasheed@gmail.com>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Dean Rasheed <dean.a.rasheed@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Dean Rasheed <dean.a.rasheed@gmail.com>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Dean Rasheed <dean.a.rasheed@gmail.com>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Kouhei Kaigai <kaigai@ak.jp.nec.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Kouhei Kaigai <kaigai@ak.jp.nec.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Kohei KaiGai <kaigai@kaigai.gr.jp>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Kohei KaiGai <kaigai@kaigai.gr.jp>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Robert Haas <robertmhaas@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Craig Ringer <craig@2ndquadrant.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: RLS Design Yeb Havinga <yebhavinga@gmail.com>
Re: RLS Design Dean Rasheed <dean.a.rasheed@gmail.com>
Re: RLS Design Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Dean Rasheed <dean.a.rasheed@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Alvaro Herrera <alvherre@2ndquadrant.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Craig Ringer <craig@2ndquadrant.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Gregory Smith <gregsmithpgsql@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? "Brightwell, Adam" <adam.brightwell@crunchydatasolutions.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Dean Rasheed <dean.a.rasheed@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Robert Haas <robertmhaas@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from the rewriter into the planner? Tom Lane <tgl@sss.pgh.pa.us>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Dean Rasheed <dean.a.rasheed@gmail.com>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? Stephen Frost <sfrost@snowman.net>
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? "Brightwell, Adam" <adam.brightwell@crunchydatasolutions.com>
Re: API change advice: Passing plan invalidation info from the
rewriter into the planner? Alvaro Herrera <alvherre@2ndquadrant.com>
On Wed, Jul 16, 2014 at 10:04 PM, Brightwell, Adam wrote: > Yes, I just tested it and the following would work from a grammar > perspective: > > ALTER TABLE POLICY ADD (policy_quals) > ALTER TABLE POLICY DROP > > Though, it would obviously require the addition of POLICY to the list of > unreserved keywords. I don't suspect that would be a concern, as it is not > "reserved", but thought I would point it out just in case. > > Another thought I had was, would we also want the following, so that > policies could be modified? > > ALTER TABLE POLICY ALTER (policy_quals) I think we do want a way to modify policies. However, we tend to avoid syntax that involves unnatural word order, as this certainly does. Maybe it's better to follow the example of CREATE RULE and CREATE TRIGGER and do something this instead: CREATE POLICY policy_name ON table_name USING quals; ALTER POLICY policy_name ON table_name USING quals; DROP POLICY policy_name ON table_name; The advantage of this is that you can regard "policy_name ON table_name" as the identifier for the policy throughout the system. You need some kind of identifier of that sort anyway to support COMMENT ON, SECURITY LABEL, and ALTER EXTENSION ADD/DROP for policies. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления
От: Peter Geoghegan
Дата:
От: Peter Geoghegan
Дата: