Re: GRANT ON ALL IN schema - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: GRANT ON ALL IN schema
Date
Msg-id 20090617140904.GL20436@tamriel.snowman.net
Whole thread Raw
In response to Re: GRANT ON ALL IN schema  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: GRANT ON ALL IN schema  (Petr Jelinek <pjmodos@pjmodos.net>)
List pgsql-hackers
Peter,

* Peter Eisentraut (peter_e@gmx.net) wrote:
> > Also since this patch introduces VIEWS as object with grantable
> > privileges, I added GRANT ON VIEW foo syntax which is more or less
> > synonymous to GRANT ON TABLE foo syntax. It felt weird to have GRANT ON
> > ALL VIEWS but not GRANT ON VIEW.
>
> As far as GRANT is concerned, a view is a table, so I would omit the
> VIEW/VIEWS stuff completely.

I would disagree with this.  While an explicit GRANT doesn't need to
care, because you can't have a view and a table with the same name, I
feel *users* (like me) make a distinction there and may want to limit
the grant to just views or just tables.

What we do here will also impact the DefaultACL system that I'm working
on since I think we should be consistant between these two systems.

http://wiki.postgresql.org/wiki/DefaultACL

I don't like the idea that a 'GRANT ALL' would actually change default
ACLs for a schema though.  These are two separate and distinct things-
one is implementing a change to existing objects, the other is setting a
default for new objects.  Mixing them would lead to confusion.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: GRANT ON ALL IN schema
Next
From: Tom Lane
Date:
Subject: Re: GRANT ON ALL IN schema