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 1mi231-0002MU-Dm for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Nov 2021 22:14:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mi230-0002Nu-8j for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Nov 2021 22:14:26 +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 1mi230-0002Nl-0h for pgsql-hackers@lists.postgresql.org; Tue, 02 Nov 2021 22:14:26 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mi22x-0002g8-KV for pgsql-hackers@postgresql.org; Tue, 02 Nov 2021 22:14:25 +0000 Received: (Authenticated sender: vik@postgresfriends.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id AEC67C0007; Tue, 2 Nov 2021 22:14:21 +0000 (UTC) Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT. To: Robert Haas , Jeff Davis Cc: "pgsql-hackers@postgresql.org" References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com> From: Vik Fearing Message-ID: <78d935e1-a9ad-2d8d-8ff7-9761566d820e@postgresfriends.org> Date: Tue, 2 Nov 2021 23:14:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 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 11/2/21 4:06 PM, Robert Haas wrote: > There's bound to be somebody who wants to grant some of > these permissions and not others, or who wants to grant the ability to > run those commands on some tables but not others. Is there anything stopping us from adding syntax like this? GRANT VACUUM, ANALYZE ON TABLE foo TO bar; That doesn't fix the CHECKPOINT issue, but surely vacuum and analyze can be done that way. I would much prefer that over new predefined roles. This would be nice, but there is nothing to hang our hat on: GRANT CHECKPOINT TO username; -- Vik Fearing