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 1p36p1-0005OR-B1 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Dec 2022 02:39:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p36oz-0002xI-Np for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Dec 2022 02:39:37 +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 1p36oz-0002x8-ED for pgsql-hackers@lists.postgresql.org; Thu, 08 Dec 2022 02:39:37 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p36ou-0008Qa-BG for pgsql-hackers@postgresql.org; Thu, 08 Dec 2022 02:39:36 +0000 Received: by mail-il1-x129.google.com with SMTP id d14so103773ilq.11 for ; Wed, 07 Dec 2022 18:39:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=PBkO/W8NAGmC70NGGGH1oBBF2vlclzxc+5JGLlJRW+M=; b=kTKe9hZnDCf2H0lgnRLIwaFqjt15HZP++mwHuQUzy4rZsYLHtjfSE4ObszxOiHL43o pMHpatlQIrPBXIJLUcgUbbnVk3ZKZ60OgnMww+pu2HA3Bopuxi8bkGOvJ6wNUsyUkQQf BqjT9KlzWBp/Sx/oqSWrsjkfMl/pvCRaPVXL0ZacuMkZnYngLvVjyFAUAoht2Xg2JpFT RCLt5VIh5AZ52Wi7YiWxhkZBdCUvqh05U3rFmxbN2VhAuxWV+vJ0vqfSN0C/hId+jFTy DWOyM3JCvJ7Q4OMCOKJmMwS7sNrtA/VwjjsV+ymPoU25MQTnOwuH47Eyksm/rxcrSjAx Z+2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to: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=PBkO/W8NAGmC70NGGGH1oBBF2vlclzxc+5JGLlJRW+M=; b=FsbCuRK1AiQ7hilrvPwNXP7IFqXn6X6TpwlHXDePiD1Wp/CU7aWaQehr0hhg2prt5/ fdUL37RXDGqZM30irEKpedRRrov67zV+DxSP2B/kyT38+0Ac9PHUMB5ID8P7HOQErwbd XDiuGvZeCnyGdcwqA52FyK931Ob/HUlNeGJow7uv8EmU+5faOsKh2ZB9tN9YAge2BiUK jLe7RlcPqcscIZqLK7654jDoKjaDvrg79AmlOYi9ua6E0GaPfsBv0xRmxNS5C0oPUP/n /RdHVsefYsz/AqjJNgOVA8EJ8pHDk7T6zgu/2HL+Zgksjd4KCnwxG//qld+6NQJypNYI HzZw== X-Gm-Message-State: ANoB5pkQCEsQrmRaGousL38GkP9zFhShWONSLVgZfzCbto+4Uu/cPxwm wD1iRHgjct1c8d9SmfbOyo4D6g== X-Google-Smtp-Source: AA0mqf5qhVfdB6qecvkaLP94SyAZ27LB3odV5Xbg3JRggpmLFt0mW2JBBPz4fltnwQLUIk8euoN5GA== X-Received: by 2002:a92:b751:0:b0:303:28dc:5639 with SMTP id c17-20020a92b751000000b0030328dc5639mr12092188ilm.303.1670467171430; Wed, 07 Dec 2022 18:39:31 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j11-20020a6b780b000000b006a49722dc6dsm8296861iom.11.2022.12.07.18.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 18:39:31 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 20326800DCC; Wed, 7 Dec 2022 20:39:30 -0600 (CST) Date: Wed, 7 Dec 2022 20:39:30 -0600 From: Justin Pryzby To: Pavel Luzanov Cc: Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: add \dpS to psql Message-ID: <20221208023929.GB27893@telsasoft.com> References: <20221206193606.GB3078082@nathanxps13> <661148f4-c7f1-dec1-2bc8-29f3bd58e242@postgrespro.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <661148f4-c7f1-dec1-2bc8-29f3bd58e242@postgrespro.ru> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Dec 07, 2022 at 10:48:49AM +0300, Pavel Luzanov wrote: > Furthermore. The VACUUM privilege allows you to also execute VACUUM FULL. > VACUUM and VACUUM FULL are commands with similar names, but work completely > differently. > It may be worth clarifying on this page: > https://www.postgresql.org/docs/devel/ddl-priv.html > > Something like: Allows VACUUM on a relation, including VACUUM FULL. Since (as you said) they work completely differently, I think it'd be more useful if vacuum_full were a separate privilege, rather than being included in vacuum. And cluster could be allowed whenever vacuum_full is allowed. > There is a very similar command to VACUUM FULL with a different name - > CLUSTER. The VACUUM privilege does not apply to the CLUSTER command. > This is probably correct. I think if vacuum privilege allows vacuum full, then it ought to also allow cluster. But I suggest that it'd be even better if it doesn't allow either, and there was a separate privilege for those. Disclaimer: I have not been following these threads. -- Justin