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 1p3iIx-0005oz-9C for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 18:41:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p3iIv-0006vC-IH for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 18:41:01 +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 1p3iIv-0006v3-3n for pgsql-hackers@lists.postgresql.org; Fri, 09 Dec 2022 18:41:01 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p3iIs-0004xY-Of for pgsql-hackers@postgresql.org; Fri, 09 Dec 2022 18:41:00 +0000 Received: by mail-pl1-x635.google.com with SMTP id jn7so5753572plb.13 for ; Fri, 09 Dec 2022 10:40:58 -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=pVvtw+N+fZjIUAlY8x2PmT2kwOxa3F2RFXzqZb+JZxs=; b=coNWAlGJnObRMkNGnekWDcBGkqjFS96aatb67/mKKzLVsRkcgNvViF/wI0g/5pOq6T hgEYp3oVQAHq9BTpwZdpIhqdObDPg1KuRXMe7tTZXceT8z1bUc8Te1M9a5tcP158O0xJ NxW1sPeetHEVUeLFJKeDBn7PEq7YsuPoaW5pWU9Ccm1ZZkLw59nJd6/lhJRFz3FcX9lj F2YNE18b8Sa2YUVrcJ0JGHIl2dFwfhfOwrsK99C69fgui1/D5fMKuy5gwinSx9kuHaUy t7UCwInWE/2xv4OKjV+lgUsekgrnWRgenjqBK+lrtpf6eexL5OE0/aR1LyzLxLC8UoZw GdGA== 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=pVvtw+N+fZjIUAlY8x2PmT2kwOxa3F2RFXzqZb+JZxs=; b=lY+AF3gsAyG0B0/InCOKRqBP6TiNcA22a8DQuVmniH16VOd+JBn4WFCAXaITDqO4hx evGpnnU2b3qNc62Wkgx2rCUv02HOCeDbKfjXNYwpku/50N3DuRHhRGOpXlgz7V2G5pl9 Kik9qy53dVu4Ptwp0JCe+jYWCLur90fXk2mzHgFE52nwKCvLMn78vaeRWNbq2/47qcLB 3CXANiA7cdr3dOKEW2D5AUDNsncl0ExbfWEfE2aQfwE8scDDSjJ81Wir6tEKvluxgauW 4RFCdoc6SDp48yxZOt1h39WoLeIBplUj7GMf/SvMIeovreFRrOSQO79zvv/djf6FHPKE 8vcg== X-Gm-Message-State: ANoB5pkIskOeMS3gMg7Wh6DA58Lt/IhJdAoctWiBrn091q5sfugttRei aidZEcBqdadpY1WKK2JS8bM= X-Google-Smtp-Source: AA0mqf55Jb3PfkNf9qTFUElozBwPHV3pzlKUT+d7HFmaX5v995waDZ56MA92BnIQN/pYVCMOIFlKvg== X-Received: by 2002:a05:6a20:2a8f:b0:a5:2d1a:9aff with SMTP id v15-20020a056a202a8f00b000a52d1a9affmr10280810pzh.49.1670611257786; Fri, 09 Dec 2022 10:40:57 -0800 (PST) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id q6-20020a170902a3c600b0018bde2250fcsm1627448plb.203.2022.12.09.10.40.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 10:40:57 -0800 (PST) Date: Fri, 9 Dec 2022 10:40:55 -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: <20221209184055.GA59417@nathanxps13> References: <20221206193606.GB3078082@nathanxps13> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com