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 1miz21-0002Mv-MO for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Nov 2021 13:13:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1miz20-0005Yf-J6 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Nov 2021 13:13:20 +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 1miz1z-0005Mh-FV for pgsql-hackers@lists.postgresql.org; Fri, 05 Nov 2021 13:13:20 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miz1w-0006tJ-Gh for pgsql-hackers@postgresql.org; Fri, 05 Nov 2021 13:13:18 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 95D6D5C013F; Fri, 5 Nov 2021 09:13:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 05 Nov 2021 09:13:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=4quMe3YNpPdH6kNOOcQcq2Dsy/P+SNl+Bw/MjYgQ4YY=; b=kLKXjLGo f4QL+bl5YcaJ5gcw9Jb0IVd18giGYgWxmq990Ry4nUB1L7c3kKhRCw0Ug7/OXei/ jMNTTSAufmXT/QWlB94Ezx1Ck3xJl3dYPU+84MDUii4j/fer98WrclkfiPWr8dwZ R4xB7H4H8kEV8YHuE6JNq/Oyn1A/FcxMp7hTOtwjERXUC6zUH3aqGOA6NI0LOvbP EXBFEgwKKZQgpupDCaVqSdMmhzsMVPj730vEqcR2pnVT7+dKKW9Y1cDYHuZxduXw URQVdbxjomumntaylIZ/JOzlFZtH2T+4j4p1rAtigNbfQnNdZiSn+9khdX7LyiPf 1lbxp2aiYyn3EQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtdeigdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeevjedu feeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Nov 2021 09:13:13 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 203A52A0804; Fri, 5 Nov 2021 10:13:11 -0300 (-03) Date: Fri, 5 Nov 2021 10:13:11 -0300 From: Alvaro Herrera To: Jeff Davis Cc: Andres Freund , Robert Haas , Stephen Frost , "Bossart, Nathan" , "pgsql-hackers@postgresql.org" , Bharath Rupireddy Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT. Message-ID: <202111051313.bjbxbz4w5g3b@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8bf68314adb900c3b234f88b7fa9a93ba2b984eb.camel@j-davis.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Nov-04, Jeff Davis wrote: > But I don't see it generalizing to a lot of commands, either. I looked > at the list, and it's taking some creativity to think of more than a > couple other commands where it makes sense. Maybe LISTEN/NOTIFY? But > even then, there are three related commands: LISTEN, UNLISTEN, and > NOTIFY. Are those one privilege representing them all, two > (LISTEN/UNLISTEN, and NOTIFY), or three separate privileges? What about things like CREATE SUBSCRIPTION/PUBLICATION? Sounds like it would be useful to allow non-superusers do those, too. That said, if the list is short, then additional predefined roles seem preferrable to having a ton of infrastructure code that might be much more clutter than what seems a short list of additional predefined roles. -- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/ "We're here to devour each other alive" (Hobbes)