Re: Granting all tables in schema by one SQL command

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Granting all tables in schema by one SQL command
Дата
Msg-id b42b73150610191414n3dcb2fa9u7aec161ba33fb22b@mail.gmail.com
обсуждение исходный текст
Ответ на Granting all tables in schema by one SQL command  (Krycek <krycek6@wp.pl>)
Ответы Re: Granting all tables in schema by one SQL command  (Krycek <krycek6@wp.pl>)
Список pgsql-hackers
On 10/19/06, Krycek <krycek6@wp.pl> wrote:
> The proposed syntax is:
>
> GRANT SELECT ON ALL TABLES IN public TO phpuser; GRANT SELECT ON NEW
> TABLES IN public TO phpuser;"

> "GRANT SELECT ON NEW TABLES IN public TO phpuser;"?
>
> What does "NEW TABLES" mean in this context?

the point is to allow tables to inherit permissions from the parent
schema.  this is actually imo much more important than multiple table
grant, because it is already trivially easy to do that with a pl/pgsql
function doing 'grant' in dynamic sql over information schema for
example.  There was considerable debate on this topic at the time that
todo was written up.

the 'new tables' bit also raises the difficulty up a notch.

merlin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] oid2name optargs
Следующее
От: "Rocco Altier"
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Work around reported problem that AIX's getaddrinfo() doesn't