Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVshU-00CJWV-IH for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2025 13:35:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tVshS-001uKh-R6 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2025 13:35:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVshR-001uGu-W5 for pgsql-hackers@lists.postgresql.org; Thu, 09 Jan 2025 13:35:50 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tVshP-000iO6-1P for pgsql-hackers@postgresql.org; Thu, 09 Jan 2025 13:35:48 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 4150E13801BD; Thu, 9 Jan 2025 08:35:46 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 09 Jan 2025 08:35:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1736429746; x=1736516146; bh=l r11U7tvQNxtu71v77wMhh0ku2BRXkgWaBS0mGlx4Fc=; b=hl+GW8YYSMk1xODM2 54dNE+lgKcL7Z6DRUNAwqs6COWfoTrJiSoC0FUUSVKGOLyUW6xQtZFwmmM7GtV/I akG6qd0i1MBQ7aMmnQsgI/BL8tXDXzE0O523iqfgDOL7Ud5Q1+53YTKJzZ+1AjfV IvP28fwO2GNHCdxcZu6YABHtusFDPYFle2He22q6FXIdVcOLBeO+0wt4cdYRhb3r N4ps3BNRZdBOkaWFrb2fRWFVsaEXJyBYwti5GHv6ka2hjhvdKyNDQu2vmkYtbSTP mX+V4vZLbgCPlfWb+5gZHYxwIQXgjUvyqcWcObSJ1f2RA9MP+yISsTLia8ikZv9o Kw5lQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegiedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeen ucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhh drnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffh jeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprh gtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrhhestgihsggv rhhtvggtrdgrthdprhgtphhtthhopehprghvvghlrdhsthgvhhhulhgvsehgmhgrihhlrd gtohhmpdhrtghpthhtoheprhgvshhhkhgvkhhirhhilhhlsehgmhgrihhlrdgtohhmpdhr tghpthhtohepiihhjhifphhkuhesghhmrghilhdrtghomhdprhgtphhtthhopehmihgthh grvghlsehprghquhhivghrrdighiiipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghr shesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Jan 2025 08:35:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1736429742; bh=/j/QIm7fCiU/7KQibweuVIsgJigOHS0/854JoTnzAGk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=UTq384oQp3LO6RR+af8Yy3GvZGeM1LMggmwLC4jGUGtv9BzISnG2U9tEV2iAwb8Uh INNDNcJRbxcCcnCzNptgqhMSFdLQhEMFD8cT0iMkCQwyZYJVmeq7uzZP+cOKg7Ql8G ur5m2dJeBT6dvJphAJpTBUXjoJ9lvYN6i4enxtIw+l065nlILjoMAPKXtkM6cikCEI q8nCXopIgyHe2zF9qrUHnplL6+HY81ymtoyibd6BhThwsnGvxqY8dmmjS9yAmj4z3R 2tbQxo0goAdRO06dGwIWDcfUr6YcJFkU+CSnOy47boTUH/7BbTeBJJd/Z+TfRUiJvk 8LjCoheD2P/Qw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id A1C0F307; Thu, 9 Jan 2025 14:35:42 +0100 (CET) Date: Thu, 9 Jan 2025 14:35:42 +0100 From: Alvaro Herrera To: Antonin Houska Cc: Junwang Zhao , Kirill Reshke , Pavel Stehule , Michael Paquier , PostgreSQL Hackers Subject: Re: why there is not VACUUM FULL CONCURRENTLY? Message-ID: <202501091335.pn54a2ettbsi@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47194.1733941797@antos> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Dec-11, Antonin Houska wrote: > Oh, it was too messy. I think I was thinking of too many things at once (such > as locking the old heap, the new heap and the new heap's TOAST). Also, one > thing that might have contributed to the confusion is that make_new_heap() has > the 'lockmode' argument, which receives various values from various > callers. However, both the new heap and its TOAST relation are eventually > created by heap_create_with_catalog(), and this function always leaves the new > relation locked in AccessExclusiveMode. Maybe this needs some refactoring. > > Therefore I reverted the changes arount make_new_heap() and simply pass NoLock > for lockmode in cluster.c Cool, thanks, I have pushed this. I made some additional minor changes, nothing earth-shattering. Meanwhile the patch 0004 has some seemingly trivial conflicts. If you want to rebase, I'd appreciate that. In the meantime I'll give a look at the next two other API changes. I'm not happy with the idea of having this new command be VACUUM (FULL CONCURRENTLY). It's a bit of an absurd name if you ask me. Heck, even VACUUM (FULL) seems a bit absurd nowadays. Maybe we should have a new toplevel command. Some ideas that have been thrown around: - RETABLE (it's like REINDEX, but for tables) - ALTER TABLE SQUEEZE - SQUEEZE - VACUUM (SQUEEZE) - VACUUM (COMPACT) - MAINTAIN COMPACT - MAINTAIN SQUEEZE -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/