From: | ryan <ryan(at)bel(dot)bc(dot)ca> |
---|---|
To: | jeff seaman <jseaman(at)pharsalia(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: grant permissions |
Date: | 2000-08-14 22:33:59 |
Message-ID: | 399873D7.86F712AF@bel.bc.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
jeff seaman wrote:
>
> Hello,
>
> Is there an sql command that I can use to grant update/query privledges for
> an entire database instead of on a table by table basis.
Now this is just off the top of my head, but the general way to do this
is to create a role, grant the role access to whatever objects you're
talking about, then grant the role to indivduals.
Now, postgres does things differently, so instead you create a group,
add users to the group and then grant privlidges on objects to that
group. that way users inherit the privlidges of that group they are
in... you remove them from the group, they lose their privlidges.
Now im not sure which is the superior way, in a way it doesnt matter
since they are functionally equivalent, and i suspect the group
mechanism is more efficient, plus i dont think create role is SQL92
anyways. maybe its sql3? bah, im dont read standards (that often ;-)
Hope this helps.
-ryan
--
Ryan Rawson
System Administrator
Binary Environments Ltd.
ryan(at)bel(dot)bc(dot)ca
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Wolfe | 2000-08-14 23:30:32 | Re: Great Bridge benchmark results for Postgres, 4 others |
Previous Message | Bryan White | 2000-08-14 22:33:40 | Re: Great Bridge benchmark results for Postgres, 4 others |