view permissions problem - featuer or bug? - Mailing list pgsql-general

From Travis Bauer
Subject view permissions problem - featuer or bug?
Date
Msg-id Pine.GSO.4.21.0007071120200.29609-100000@mantaray.cs.indiana.edu
Whole thread Raw
List pgsql-general
I have a set of tables and some views which perform calculations on
those table to which no one except the group officestaff has
any permissions.  No problem.

I tried to create views to which some particular client would have
permissions.  These views would be filtered versions of the private views.
Herein lies the problem.  If any of those underlying veiws call functions
that access tables to which the user does not have permissions, or if any
of those underlying views have sub-select statements (such as "where x in
(select . . . )") the user gets access denied errors.

Is this a feature or a bug?  On the one hand, it certainly provides tight
security.  However, it seems like if you give someone permissions on a
view, that view ought to be allows to perform whatever it needs to get the
data back out regardless of other underlying permissions.

----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Find all the dates in the calendar week?
Next
From: Tom Lane
Date:
Subject: Re: 'Zombie' tables