Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command
Дата
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3412A75FD@Herge.rcsinc.local
обсуждение исходный текст
Ответ на Allow GRANT/REVOKE permissions to be applied to all schema objects with one command  (Matthias Schmidt <schmidtm@mock-software.de>)
Ответы Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > GRANT SELECT ON ALL TABLES IN public TO phpuser;
> > GRANT SELECT ON NEW TABLES IN public TO phpuser;
>
> > Really better than this?
> > GRANT { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES |
TRIGGER
> > | EXECUTE | CREATE | ALL [ PRIVILEGES ] }    ON SCHEMA schemaname [,
> > ...]
>
> The latter confuses privileges-for-a-schema with
privileges-for-a-table.

Right.
> > This will be faster (FWIW) than a multiple table grant
> > because it's just setting one permission at the schema level.
> I think this argument is bogus, because the savings in time spent to
do

Of course.  GRANT is not really performance sensitive, anyways. Is the
price of looking up a schema a deal breaker here, or is it possible to
avoid it?

Merlin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Group-count estimation statistics
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: New 7.2.7 Bundle Up