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 1lp0zT-0002xi-Hf for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 03:59:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lp0zS-0003mc-6l for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 03:59:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp0zR-0003mU-UA for pgsql-general@lists.postgresql.org; Fri, 04 Jun 2021 03:59:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp0zL-0002KZ-7W for pgsql-general@lists.postgresql.org; Fri, 04 Jun 2021 03:59:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1543xCZ0118652; Thu, 3 Jun 2021 23:59:13 -0400 From: Tom Lane To: saket bansal cc: PostgreSQL General Subject: Re: Noinheritance with superuser In-reply-to: References: Comments: In-reply-to saket bansal message dated "Thu, 03 Jun 2021 20:13:05 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <118645.1622779152.1@sss.pgh.pa.us> Date: Thu, 03 Jun 2021 23:59:12 -0400 Message-ID: <118646.1622779152@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk saket bansal writes: > I have an RDS instance with the below configuration. > create role role1 login noinheritance; > grant rds_superuser to rdsdba; > grant rdsdba to role1 > In this case role1 is able to do all administrative operations, without the > need of switching to rdsdba. > Is this expected? rds_superuser is not a thing that exists in community Postgres. I'd suggest taking this question up with the Amazon RDS folk. regards, tom lane