Re: Granting all tables in schema by one SQL command

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: Krycek <krycek6(at)wp(dot)pl>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Granting all tables in schema by one SQL command
Date: 2006-10-19 21:14:07
Message-ID: b42b73150610191414n3dcb2fa9u7aec161ba33fb22b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/19/06, Krycek <krycek6(at)wp(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rocco Altier 2006-10-19 21:26:52 Re: [COMMITTERS] pgsql: Work around reported problem that AIX's getaddrinfo() doesn't
Previous Message Tom Lane 2006-10-19 20:39:22 Re: oid2name optargs