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 1mi2lX-00043x-VX for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Nov 2021 23:00: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 1mi2lW-0004nf-2x for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Nov 2021 23:00:26 +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 1mi2lV-0004nW-R8 for pgsql-hackers@lists.postgresql.org; Tue, 02 Nov 2021 23:00:25 +0000 Received: from relay12.mail.gandi.net ([217.70.178.232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mi2lN-0002qX-An for pgsql-hackers@postgresql.org; Tue, 02 Nov 2021 23:00:24 +0000 Received: (Authenticated sender: vik@postgresfriends.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 60F31200003; Tue, 2 Nov 2021 23:00:12 +0000 (UTC) Subject: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT. From: Vik Fearing To: Robert Haas , Jeff Davis Cc: "pgsql-hackers@postgresql.org" References: <67a1d667e8ec228b5e07f232184c80348c5d93f4.camel@j-davis.com> <78d935e1-a9ad-2d8d-8ff7-9761566d820e@postgresfriends.org> Message-ID: <9ddc442f-e6fd-4a1a-2d73-894975810bb7@postgresfriends.org> Date: Wed, 3 Nov 2021 00:00:12 +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: <78d935e1-a9ad-2d8d-8ff7-9761566d820e@postgresfriends.org> 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 11:14 PM, Vik Fearing wrote: > This would be nice, but there is nothing to hang our hat on: > > GRANT CHECKPOINT TO username; Thinking about this more, why don't we just add CHECKPOINT and NOCHECKPOINT attributes to roles? ALTER ROLE username WITH CHECKPOINT; -- Vik Fearing