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 1oG18f-0006uY-79 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2022 16:41: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 1oG18d-000198-Rm for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2022 16:40:59 +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 1oG18d-00018r-GX for pgsql-hackers@lists.postgresql.org; Mon, 25 Jul 2022 16:40:59 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oG18W-0004xi-W2 for pgsql-hackers@postgresql.org; Mon, 25 Jul 2022 16:40:58 +0000 Received: by mail-pj1-x1036.google.com with SMTP id g5-20020a17090a290500b001f2ea602563so32587pjd.4 for ; Mon, 25 Jul 2022 09:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MnjMo510OpmKttWSmrXVl/72USra8yq7FxoHmZSoaDQ=; b=Ver1+TXyeLf+FT1SLZ5jv+EJsMoewv5Hd9DQUmUd5kdh8wwZVgD1HuGE86+2U9oHMf W8P43w7G1XN6YBwNUheWt74L8Ei9RQK3IbpqXpZk4pyn+KWk9bkSejQ8LWtJYzNYRNpN nJCTtZ1raUugjULO2Bz5T2C8gN5IzrjU4V39affDttCmpa/XqpYovnwCBSS7UhauSD50 Az7vn85/bzCqLiTPnAbOZXdsMBP0nmupzG47bJvzR124aAnlqDwSJOz4GHaY0nP5RnFk 0zqYMQ0jhjgH1w6VJ76zSaRCcmVf/he6oIAFD1Rb3QdHnfHx6eMfe4dWMUgq7Rc9S2aE Fwqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MnjMo510OpmKttWSmrXVl/72USra8yq7FxoHmZSoaDQ=; b=Dg9udYIVtvj+VZiMwYbVuGhR6PHN8lM35yaSi4CHoIZxavZhUXKnYsXhLFZK/+kpjw JAOwbCnvCZzk183AW6hoLsIHMyTouV/M62n1Ud8GJUeGc13YF2o05f5p67DOsR1AvXXg fXb9YlJsBk3usHuj8wIjEJ1hnlkrHk2dE/I80TrN1IWmv/3OyUTag2flhsqMm0R8njl7 rb0zo8SzuhSHyfiiwYmB1ADVFJBhxxAFbnjH06YlUN0ti/HWptGeo7eo+L+zl7EmxVz4 B8rfaWGy6+Bqa2ujaVUh3cAq/zM3aj8JQJuwQxLkzLRLtDBQpby/Mn8cnP4fjJwowa+T Pjdg== X-Gm-Message-State: AJIora+I70tEB4QKApja7hlGNE0A6PFTmaOyCLQbBQqjCiHvSc/uiEGY 8qZMuiVzvIGbKSmF/YlvJ7QgKt1Ajxg= X-Google-Smtp-Source: AGRyM1uomsAXkxr2UHZbsdNp9cTvLMN3kAHt3Gjcm+iG/gHdQW5rvUjQjzl8EMf/5WVO0gMJc8KLxw== X-Received: by 2002:a17:90a:2ec5:b0:1f2:ea66:c832 with SMTP id h5-20020a17090a2ec500b001f2ea66c832mr20735pjs.31.1658767251967; Mon, 25 Jul 2022 09:40:51 -0700 (PDT) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id o66-20020a625a45000000b0052bcb042c53sm7436224pfb.42.2022.07.25.09.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 09:40:51 -0700 (PDT) Date: Mon, 25 Jul 2022 09:40:49 -0700 From: Nathan Bossart To: Bharath Rupireddy Cc: PostgreSQL-development Subject: Re: predefined role(s) for VACUUM and ANALYZE Message-ID: <20220725164049.GA4091959@nathanxps13> References: <20220722203735.GB3996698@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jul 25, 2022 at 12:58:36PM +0530, Bharath Rupireddy wrote: > Thanks. I'm personally happy with more granular levels of control (as > we don't have to give full superuser access to just run a few commands > or maintenance operations) for various postgres commands. The only > concern is that we might eventually end up with many predefined roles > (perhaps one predefined role per command), spreading all around the > code base and it might be difficult for the users to digest all of the > roles in. It will be great if we can have some sort of rules or > methods to define a separate role for a command. Yeah, in the future, I could see this growing to a couple dozen predefined roles. Given they are relatively inexpensive and there are already 12 of them, I'm personally not too worried about the list becoming too unwieldy. Another way to help users might be to create additional aggregate predefined roles (like pg_monitor) for common combinations. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com