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 1p5W8a-0005tB-4P for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Dec 2022 18:05:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p5W8Y-0000sm-LI for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Dec 2022 18:05:46 +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 1p5W8Y-0000sc-CL for pgsql-hackers@lists.postgresql.org; Wed, 14 Dec 2022 18:05:46 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5W8R-0007VR-RJ for pgsql-hackers@postgresql.org; Wed, 14 Dec 2022 18:05:45 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6BD205C01EC; Wed, 14 Dec 2022 13:05:38 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 14 Dec 2022 13:05:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1671041138; x=1671127538; bh=m Q8yKVjMdzZ5AGYHCb/+K/UPMbH4jxjqFoE2xRhByEM=; b=xRNos0d9RT2zFKEpi nlRMIPn7cMlOdQ3uuALaKNuxeYGXHZ+1acc1Q8VBW2uogAxOnaBlIfOAC+YzPifY 4npNt5w5Rw24MqTsxNuRdLAEhWRMcvtmiT6n0+plpgBA8R1Qll/Y7axQqUjU22Dl bsxDqXBSxd6qUSV+oRUHHZNmm59u0PU/xQZkOCD3BpiXyiPjItEQTUQa2xNwh88u 0EJ4jdO1M/o20zX+9X1sjr8eBYqzQt6XsnOrKyj7eCQCglKdaR/baoo9WGnXlzUF rZ158i+vAxUXbT3T6fcEO4utYpNlIogPttzstH4VNgzVrlChOPLAaBA6OVX2xUyo +HdQw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeefgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Dec 2022 13:05:37 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 68627E98; Wed, 14 Dec 2022 19:05:34 +0100 (CET) Date: Wed, 14 Dec 2022 19:05:34 +0100 From: Alvaro Herrera To: Nathan Bossart Cc: Pavel Luzanov , Jeff Davis , pgsql-hackers@postgresql.org Subject: Re: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX Message-ID: <20221214180534.jglo7jclow3x73bd@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221214171336.GB689106@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Dec-14, Nathan Bossart wrote: > On Wed, Dec 14, 2022 at 12:07:13PM +0300, Pavel Luzanov wrote: > > I found that granting MAINTAIN privilege does not allow the TOAST table to > > be vacuumed. > > Hm. My first thought is that this is the appropriate behavior. WDYT? It seems wrong to me. If you can vacuum a table, surely you can also vacuum its toast table. If you can vacuum all normal tables, you should be able to vacuum all toast tables too. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "La virtud es el justo medio entre dos defectos" (Aristóteles)