Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQVqZ-0007pJ-LX for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 14:25:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQVqX-00010o-HT for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 14:25:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQVqX-00010g-8I for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 14:25:09 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQVqV-00010U-5V for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 14:25:08 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 044A55C00ED; Wed, 15 Sep 2021 10:25:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 15 Sep 2021 10:25:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=l Vz/V8AIfPDb9rI/RJZm8y6EDXIGHkB9qHEKGFgYr2A=; b=uxgrPphDTNYseryVb gAiH13bYx1E6Gqm9hI9SyUtWhf5weaZaLycN5y7+LATBncEEUQBerKDc322MzA5e uoicIuLgiVa3WV8mLr0vvp5nMQYCezRuy37P2LFy4a6pkpGqB2uROVFAIa+wBkv7 JLojg7yJ89I0w8a2NBS9TUi3Asojy7WteLaluKTDGh4meM2LMfeXvcY4WQBQATJt 3nlekFxpb70lRN1XuysdP1C3V0t0XMLwxTTDOQIkXA7oOirxrGam8L42RGJGY8yN DLfm9nEHa0rqwwLui55nUWz2+wH3H9+wU0IiFXzQMVh9OXlNc6ic9bpjxEJBnKS1 MJCUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=lVz/V8AIfPDb9rI/RJZm8y6EDXIGHkB9qHEKGFgYr 2A=; b=qR6/PtMA7zumcyKRj/lkF60X4gTFc6zAxGvPHYgxQyIEVjGi+3+55u/ej 0Mz9QRnwwo4/J5zrydY6+7hFp5pf8kNSzbglefrCyj8IIDMsJSYnuCokBNZG9xM+ fXe1IuuB3jO568GDL5lQ914VlMRqd0WIqgtmOEzDVpxZF8a5AkcwgJzggS9frcS8 o5OKe4fYaz8cvbPZ/4CkMGdGHMOKUS8LFVjyjUWTNzcvVVoCLYHOy5/OxfnRP1XE WLnTrQ9PhSmU0IxAlVWd1+aKuyFUB/93wSooDZl1DIbrnxZysixXIypFPNcaElx2 KX8K6/gCABN2E1qFtjcfxn5ESooTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehuddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeehnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnheptdegffelhf evieekgeduudefteeugeffudegudekiedtleegleegheffgfekvdeknecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Sep 2021 10:25:05 -0400 (EDT) Subject: Re: Basic Questions about PostgreSQL. To: A Z , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: Date: Wed, 15 Sep 2021 07:25:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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