Re: Granting all tables in schema by one SQL command - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Granting all tables in schema by one SQL command
Date
Msg-id b42b73150610191414n3dcb2fa9u7aec161ba33fb22b@mail.gmail.com
Whole thread Raw
In response to Granting all tables in schema by one SQL command  (Krycek <krycek6@wp.pl>)
Responses Re: Granting all tables in schema by one SQL command  (Krycek <krycek6@wp.pl>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] oid2name optargs
Next
From: "Rocco Altier"
Date:
Subject: Re: [COMMITTERS] pgsql: Work around reported problem that AIX's getaddrinfo() doesn't