Re: Basic Questions about PostgreSQL. - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Basic Questions about PostgreSQL.
Date
Msg-id d19ffd77-c5d7-3959-11e7-fd7cc88a5a9a@aklaver.com
Whole thread Raw
In response to Basic Questions about PostgreSQL.  (A Z <poweruserm@live.com.au>)
List pgsql-general
On 9/14/21 10:10 PM, A Z wrote:
> -In PostgreSQL, what is the difference between Roles, Groups, and 
> Policies exactly? What are they each, how do they relate to one another, 
> and which one(s) can be assigned to another?
> 

Roles, groups and users have to do with project history more then 
anything else. Prior to version 8.1 there where no roles, just users and 
groups. Roles when introduced they subsumed users and groups. As David 
mentioned then the convention became that a role that had login was 
equivalent to a user and one that did not was a group. This is called 
out in the documentation for the aliases CREATE GROUP and CREATE USER, 
both of which actually point at CREATE ROLE.

Policies comes into play by allowing for more granular control over what 
a role can do on a table.

-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How to restore roles into new Database server?
Next
From: Thomas Kellerer
Date:
Subject: Re: How to restore roles into new Database server?