Re: Question About Roles

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Question About Roles
Date: 2014-07-02 13:33:48
Message-ID: 53B40A3C.10204@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/02/2014 06:17 AM, Rich Shepard wrote:

> -- Set user roles
>
> CREATE ROLE admin LOGIN;
> CREATE ROLE executive;
> CREATE ROLE manager;
> CREATE ROLE technician;
>
> and my question is what do I need to do so when a user is added to the
> system the local administrator and the group specified during the
> createuser
> process, she or he can be granted that group's privileges?

I am not following.

Can you show an example of what you are talking about?

Or, is that
> automatic if the role is included in the Users table?

Assuming Users is your own table, Postgres has no way of knowing that
relates to user permissions. It stores that information in the system
catalogs.

>
> Rich
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-07-02 13:57:49 Re: Question About Roles
Previous Message Rich Shepard 2014-07-02 13:17:31 Question About Roles