Skip site navigation (1) Skip section navigation (2)

Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Brendan O'Shea" <boshea(at)akamai(dot)com>,<pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants
Date: 2008-08-14 20:37:14
Message-ID: 48A4977A.2070103@enterprisedb.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Tom Lane wrote:
> "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com> writes:
>> We should use range_table_walker, which knows how to descend into all 
>> kinds of RTEs...
> 
> Yeah, I had been thinking of that but didn't see an easy way to apply
> it; of course the answer is to use IncrementVarSublevelsUp_walker
> directly as you have here.
> 
> Looks good except IncrementVarSublevelsUp_rtable really ought to have
> a comment.  Please fix that, commit, and backpatch as needed.

Done.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

In response to

pgsql-bugs by date

Next:From: Tariq AzizDate: 2008-08-15 05:04:12
Subject: xmlAgg not found..
Previous:From: Tom LaneDate: 2008-08-14 19:46:53
Subject: Re: BUG #4350: 'select' acess given to views containing "union all" even though user has no grants

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group