Reputation: 83677
I need to grant privileges to all users, I can do:
GRANT select on table TO user1;
GRANT select on table TO user2;
...
But there are many users. How can I grant this privilege to all users at once?
I tried:
GRANT select on table TO ALL;
But that doesn't work.
Upvotes: 23
Views: 56289
Reputation: 15069
You should use roles. Grant permission to roles. grant roles to users.
Upvotes: 7
Reputation: 8069
grant select on table to public;
But be careful when you do that -- make sure it's what you really want to do.
Upvotes: 33