Re: Permissions to a schema

From: Carol Walter <walterc(at)indiana(dot)edu>
To: "Campbell, Lance" <lance(at)illinois(dot)edu>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Permissions to a schema
Date: 2009-02-03 17:23:26
Message-ID: B729BBBF-74A6-40B4-854A-B48963D49F52@indiana.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I believe that this is dependent on what version of postgres you are
using. What you want to do is create a role. You do this by issuing
the CREATE ROLE command...

CREATE ROLE select_role;
GRANT SELECT on MyTable to select_role;
GRANT select_role TO MyUser;

Carol

On Feb 3, 2009, at 11:33 AM, Campbell, Lance wrote:

> How do I do the following:
>
> 1) Create a user group.
> 2) Assign access to select, delete, insert, and update to any
> table found in the following X number of schemas.
> 3) Assign the newly created user group permissions to a new user.
>
> Thanks,
>
> Lance Campbell
> Project Manager/Software Architect
> Web Services at Public Affairs
> University of Illinois
> 217.333.0382
> http://webservices.uiuc.edu
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Azzarello 2009-02-03 21:40:55 Re: Warm standby recovery failure
Previous Message Dru Devore 2009-02-03 17:00:53 Re: Totally inappropriate by-line for a major representative of this organization