Re: [pgsql-hackers] Allow GRANT/REVOKE permissions to be applied to all schema - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [pgsql-hackers] Allow GRANT/REVOKE permissions to be applied to all schema
Date
Msg-id 28937.1106959394@sss.pgh.pa.us
Whole thread Raw
In response to Re: [pgsql-hackers] Allow GRANT/REVOKE permissions to be applied to all schema  (Josh Berkus <josh@agliodbs.com>)
Responses Re: [pgsql-hackers] Allow GRANT/REVOKE permissions to be applied to all schema
Re: [pgsql-hackers] Allow GRANT/REVOKE permissions to be applied to all schema
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> GRANT SELECT ON ALL, NEW TABLES IN public TO phpuser;
> ... does both.

Ah, I overlooked that part of your message.  I think the above probably
doesn't work in bison, but if not we could spell it like
 GRANT SELECT ON ALL AND NEW TABLES IN public TO phpuser;

Or just make the user enter two commands for this case.  Aside from
syntactic simplicity, that might be a good idea anyway.  The NEW TABLES
case is *fundamentally* different from every other form of GRANT, in
that it causes future actions.  So it might be a wise idea from the
standpoint of understandability to keep it as a separate command from
the immediate-acting ALL TABLES.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [pgsql-hackers] Allow GRANT/REVOKE permissions to be applied to all schema
Next
From: Alvaro Herrera
Date:
Subject: Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command