Re: access privileges: grant select on (all current and future tables)?

Поиск
Список
Период
Сортировка
От John Smith
Тема Re: access privileges: grant select on (all current and future tables)?
Дата
Msg-id f029597e0709271148i19ca94c2gc3d3b5c276166d41@mail.gmail.com
обсуждение исходный текст
Ответ на access privileges: grant select on (all current and future tables)?  ("John Smith" <jayzee.smith@gmail.com>)
Ответы Re: access privileges: grant select on (all current and future tables)?  ("John Smith" <jayzee.smith@gmail.com>)
Re: access privileges: grant select on (all current and future tables)?  ("John D. Burger" <john@mitre.org>)
Список pgsql-general
On 9/27/07, John Smith <jayzee.smith@gmail.com> wrote:
> how'd i "grant select on (all current and future tables inside a
> private schema) to username" without turning that user into superuser?
> "grant usage on..." doesn't do it.
>
> or do i, everytime i batch/auto create the tables, do a "grant select
> on (new table) to username"?

ok did some more googling. seems like "grant" is not the strongest
feature of postgresql yet.

for those who follow:
"grant select on schemaname.tablename..." alone works. gotto
explicitly mention tablename via trigger/script since schema privilege
is separate from table privilige.

and "grant usage on new tables in schema..." doesn't exist yet. which
leads to my next question (see
http://svr5.postgresql.org/pgsql-hackers/2005-01/msg01070.php)- are we
there yet?

also how'd i find access privileges for a schema. something like "\z
schemaname" not "\dp schemaname."?
cheers, jzs

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: DAGs and recursive queries
Следующее
От: "Matthew Dennis"
Дата:
Сообщение: Re: pg_dump (8.1.9) does not output copy statements