Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3412A75FD@Herge.rcsinc.local
Whole thread Raw
In response to Allow GRANT/REVOKE permissions to be applied to all schema objects with one command  (Matthias Schmidt <schmidtm@mock-software.de>)
Responses Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> > GRANT SELECT ON ALL TABLES IN public TO phpuser;
> > GRANT SELECT ON NEW TABLES IN public TO phpuser;
>
> > Really better than this?
> > GRANT { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES |
TRIGGER
> > | EXECUTE | CREATE | ALL [ PRIVILEGES ] }    ON SCHEMA schemaname [,
> > ...]
>
> The latter confuses privileges-for-a-schema with
privileges-for-a-table.

Right.
> > This will be faster (FWIW) than a multiple table grant
> > because it's just setting one permission at the schema level.
> I think this argument is bogus, because the savings in time spent to
do

Of course.  GRANT is not really performance sensitive, anyways. Is the
price of looking up a schema a deal breaker here, or is it possible to
avoid it?

Merlin


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Group-count estimation statistics
Next
From: "Marc G. Fournier"
Date:
Subject: New 7.2.7 Bundle Up