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 1mf48f-00039d-Tq for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Oct 2021 17:52:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mf48e-0003YI-RV for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Oct 2021 17:52:00 +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 1mf48e-0003Y8-JP for pgsql-hackers@lists.postgresql.org; Mon, 25 Oct 2021 17:52:00 +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 1mf48c-0002J8-HX for pgsql-hackers@postgresql.org; Mon, 25 Oct 2021 17:51:59 +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 19PHpuZJ4053259; Mon, 25 Oct 2021 13:51:56 -0400 From: Tom Lane To: Stephen Frost cc: Bharath Rupireddy , Jeff Davis , PostgreSQL-development Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT. In-reply-to: <20211025174318.GI20998@tamriel.snowman.net> References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com> <20211025174318.GI20998@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Mon, 25 Oct 2021 13:43:18 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4053257.1635184316.1@sss.pgh.pa.us> Date: Mon, 25 Oct 2021 13:51:56 -0400 Message-ID: <4053258.1635184316@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Stephen Frost writes: > Independent of other things, getting to the point where everything can > be done in the database without the need for superuser is absolutely a > good goal to be striving for, not something to be avoiding. > I don't think that makes superuser become 'dummy', but perhaps the > only explicit superuser check we end up needing is "superuser is a > member of all roles". That would be a very cool end state. I'm not entirely following how that's going to work. It implies that there is some allegedly-not-superuser role that has the ability to become superuser -- either within SQL or by breaking out to the OS -- because certainly a superuser can do those things. I don't think we're serving any good purpose by giving people the impression that roles with such permissions are somehow not superuser-equivalent. Certainly, the providers who don't want to give users superuser are just going to need a longer list of roles they won't give access to (and they probably won't be pleased about having to vet every predefined role carefully). regards, tom lane