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 1p3iM8-00061f-4j for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 18:44:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p3iM6-00024D-ME for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 18:44:18 +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 1p3iM6-000244-Da for pgsql-hackers@lists.postgresql.org; Fri, 09 Dec 2022 18:44:18 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p3iM3-0006pQ-Rb for pgsql-hackers@postgresql.org; Fri, 09 Dec 2022 18:44:17 +0000 Received: by mail-pl1-x636.google.com with SMTP id a9so5776463pld.7 for ; Fri, 09 Dec 2022 10:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=T0euZ2qaps7Rsw/pzOg2g3kPpTXTl6DNgrvqYGAshpY=; b=Mpodc4b6nYOy/GM/k4fNDiEaKZumGv5A4MIyubs4yXl5t1yoPvnybO7+hCsAr7viAZ ew5HFLiYOOpj8Ds6mx25WCMHgqlkS+TFVlgbGo6sCsC3e7srgr18wnjKlpk+xR1unTKK evsKItpf560SExUYfSHCbfwrU+1DREdjXitPkFXMHVRBk69BuXEpl5ZHx5cDZzF4DKew wrKjNsPDhePudQEud13PFaidEr4Rb7VHNsBlzZOJajSM/5kTg5hdxN61UhNCVEOnEJU7 rcacO3gms6vBVogFvDB0MPmJHhiJr4VTLgJA20/RYIYlrpdQW2dDWAPTw/9KYrBSxUtJ IKDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=T0euZ2qaps7Rsw/pzOg2g3kPpTXTl6DNgrvqYGAshpY=; b=fqOcrALKHHkPyiR07q7JkukaNKDF55dmr4uScThvkiAi+pSe3cmmtSZ/ei5uaZnxcV nwqPjG1OlLd8Go0PvLbOwk8MZ0EGhQmx7MtJ8KVQB/p32Kjxue5pSvyTfCiSfzNpS8mn TEiRn4WVtOlK1UcgEOlRODFJFNkZDnUy4e9Vqsktz4nrXy14+QYvms0ScOLN35rxQg8t 5NLM+KgSKR9TAneV6em1K+o3OGVLN3l/WANFV7vkwWlrqonwGhswoj5lmTAlVlsaV4Er QYhGjPW7eLXh0S3qu8+l1sfoTIDuHbbdLa7CF9E9HMu8pqoaRiIjx8uod8y7k/QoB85k BxmA== X-Gm-Message-State: ANoB5pkc4iUsLZIkHbusqGhfdTXuXQvUCiEB9iOO25yvbNBgNGqjXgqd uHBj7NJ0+dfCOhrtodfrsa8= X-Google-Smtp-Source: AA0mqf4dtzuNKNPhXjKom9dGzFhGf/7xDafKy36NPwWIrl/PorfGQE45jlm6swhzD8tNLYi4nUvdCA== X-Received: by 2002:a17:902:cec1:b0:189:cef2:88e3 with SMTP id d1-20020a170902cec100b00189cef288e3mr8989881plg.57.1670611453940; Fri, 09 Dec 2022 10:44:13 -0800 (PST) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id x21-20020a17090300d500b00188fadb71ecsm1653938plc.16.2022.12.09.10.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 10:44:13 -0800 (PST) Date: Fri, 9 Dec 2022 10:44:11 -0800 From: Nathan Bossart To: Michael Paquier Cc: Tom Lane , Isaac Morland , Justin Pryzby , Pavel Luzanov , pgsql-hackers@postgresql.org Subject: Re: add \dpS to psql Message-ID: <20221209184411.GB59417@nathanxps13> References: <661148f4-c7f1-dec1-2bc8-29f3bd58e242@postgrespro.ru> <20221208023929.GB27893@telsasoft.com> <20221208041900.GB216874@nathanxps13> <39743.1670473532@sss.pgh.pa.us> <20221208050754.GA221222@nathanxps13> <45224.1670476523@sss.pgh.pa.us> <20221208171503.GA2113@nathanxps13> <20221209184055.GA59417@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221209184055.GA59417@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Dec 09, 2022 at 10:40:55AM -0800, Nathan Bossart wrote: > On Fri, Dec 09, 2022 at 01:36:03PM +0900, Michael Paquier wrote: >> On Thu, Dec 08, 2022 at 09:15:03AM -0800, Nathan Bossart wrote: >>> The main idea behind this work is breaking out privileges into more >>> granular pieces. If I want to create a role that only runs VACUUM on some >>> tables on the weekend, why ѕhould I have to also give it the ability to >>> ANALYZE, REFRESH, CLUSTER, and REINDEX? IMHO we should really let the user >>> decide what set of privileges makes sense for their use-case. I'm unsure >>> the grouping all these privileges together serves much purpose besides >>> preserving ACL bits. >> >> Hmm. I'd like to think that we should keep a frugal mind here. More >> bits are now available, but it does not strike me as a good idea to >> force their usage more than necessary, so grouping all these no-quite >> DDL commands into the same bag does not sound that bad to me. > > Okay, it seems I am outnumbered. I will work on updating the patch to add > an ACL_MAINTAIN bit and a pg_maintain_all_tables predefined role. Any thoughts on $SUBJECT? -- Nathan Bossart Amazon Web Services: https://aws.amazon.com