Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hz8Yg-0005Mb-65 for pgsql-general@arkaria.postgresql.org; Sat, 17 Aug 2019 23:56:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hz8Ye-0004tH-Bh for pgsql-general@arkaria.postgresql.org; Sat, 17 Aug 2019 23:56:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hz8Yd-0004tA-S8 for pgsql-general@lists.postgresql.org; Sat, 17 Aug 2019 23:56:28 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hz8Yb-0000bg-Eu for pgsql-general@postgresql.org; Sat, 17 Aug 2019 23:56:26 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 469xt04vFYz1GHv for ; Sat, 17 Aug 2019 19:56:24 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 17622) id 469xt03mDlz1ZVM; Sat, 17 Aug 2019 19:56:24 -0400 (EDT) Date: Sat, 17 Aug 2019 19:56:24 -0400 From: stan To: pgsql-general@postgresql.org Subject: Roles versus users Message-ID: <20190817235624.GA12153@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I am creating an application that will need to have access control. There will basically be the groups (roles ?): * normal user (can do insert on a limited sate of tables, and select on a slightly larger set * project manager will have some increased insert and select capabilities * sysadmin will be able to do select and insert on all tables in the schema There will be more than one person in each of these groups. My original intent was to create roles, and assign users to appropriate roles, using inheritance to add increasingly greater capabilities. That is the inheritance would look like this normal user <- project manager <- sysadmin But, I have run up ion a note in the documentation that says that create user is actually a synonym for create role. So, should I just create roles for each user? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin