Re: API change advice: Passing plan invalidation info from the rewriter into the planner?
От
Tom Lane
Тема
Re: API change advice: Passing plan invalidation info from the rewriter into the planner?
Дата
Msg-id
8024.1402443127@sss.pgh.pa.us
Ответ на
Re: API change advice: Passing plan invalidation info from
the rewriter into the planner? (Craig Ringer)
Список
Дерево обсуждения
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>
Craig Ringer writes: > On 06/11/2014 07:24 AM, Tom Lane wrote: >> Is the point of that that the table owner might have put trojan-horse >> functions into the RLS qual? If so, why are we only concerned about >> defending the superuser and not other users? Seems like the right fix >> would be to insist that functions in the RLS qual run as the table owner. >> Granted, that might be painful to do. But it still seems like "we only >> need to do this for superusers" is designing with blinkers on. > I agree, and now that the urgency of trying to deliver this for 9.4 is > over it's worth seeing if we can just run as table owner. > Failing that, we could take the approach a certain other RDBMS does and > make the ability to define row security quals a GRANTable right > initially held only by the superuser. Hmm ... that might be a workable compromise. I think the main issue here is whether we expect that RLS quals will be something that the planner could optimize to any meaningful extent. If they're always (in effect) wrapped in SECURITY DEFINER functions, I think that largely blocks any optimizations; but maybe that wouldn't matter in practice. regards, tom lane
В списке pgsql-hackers по дате отправления
От: Craig Ringer
Дата:
От: Robert Haas
Дата: