Re: type privileges and default privileges

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: type privileges and default privileges
Дата
Msg-id 20111111041738.GL24234@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: type privileges and default privileges  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: type privileges and default privileges
Список pgsql-hackers
* Robert Haas (robertmhaas@gmail.com) wrote:
> On Thu, Nov 10, 2011 at 10:52 PM, Stephen Frost <sfrost@snowman.net> wrote:
> > Certainly a big one that people get caught by is our default of execute
> > to public on functions..  Most of our privileges are set up as minimal
> > access to others, functions are an oddity in that regard.  Rather than
> > fight the battle of what the default *should* be for functions, we could
> > just give the DBA the ability to configure it for their database.
>
> Sure, let's do.  But that hardly means that we need to store useless
> catalog records in every database with the DBA doesn't do that.

Fair enough, so the direction would be to add 'IN DATABASE' options to
'ALTER DEFAULT PRIVILEGES' and have all the same options there, plus
flags for schema (and any other schema-level/entire-database things)
options?  I presume that the 'IN SCHEMA' / 'FOR USER' options would be
used, where those exist, and we'd only fall back to the higher ones if
those don't exist?
Thanks,
    Stephen

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Daniel Farina
Дата:
Сообщение: Re: Concurrent CREATE TABLE/DROP SCHEMA leaves inconsistent leftovers
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Multiple Extensions