From: Adrian Klaver <adrian.klaver@aklaver.com>
To: A Z <poweruserm@live.com.au>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Basic Questions about PostgreSQL.
Date: Wed, 15 Sep 2021 07:25:04 -0700
Message-ID: <d19ffd77-c5d7-3959-11e7-fd7cc88a5a9a@aklaver.com> (raw)
In-Reply-To: <PSXP216MB0085C55229D76B403FBE3E6A9ADB9@PSXP216MB0085.KORP216.PROD.OUTLOOK.COM>
References: <PSXP216MB0085C55229D76B403FBE3E6A9ADB9@PSXP216MB0085.KORP216.PROD.OUTLOOK.COM>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, poweruserm@live.com.au
Subject: Re: Basic Questions about PostgreSQL.
In-Reply-To: <d19ffd77-c5d7-3959-11e7-fd7cc88a5a9a@aklaver.com>
References: <PSXP216MB0085C55229D76B403FBE3E6A9ADB9@PSXP216MB0085.KORP216.PROD.OUTLOOK.COM> <d19ffd77-c5d7-3959-11e7-fd7cc88a5a9a@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox