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 1tpAC4-001IjF-5P for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Mar 2025 18:07:08 +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 1tpAC2-00DLK9-TV for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Mar 2025 18:07:06 +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 1tpAC2-00DLJU-Il for pgsql-hackers@lists.postgresql.org; Mon, 03 Mar 2025 18:07:06 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpAC0-000lHv-1A for pgsql-hackers@postgresql.org; Mon, 03 Mar 2025 18:07:05 +0000 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id 5545B138272A; Mon, 3 Mar 2025 13:07:03 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Mon, 03 Mar 2025 13:07:03 -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=fm1; t=1741025223; x=1741111623; bh=G dBiK5KbKTxy4OpGtQWlQBI/1ndKUIq8+ek4UwpGACE=; b=w0MGUsHx0XR1IWYo+ NeHlUl4j+mpq8bepGTOovFaF65bnqeqsjxKCIn2WaZKu7u5AFZA4hcBPY5Y73t8R g5Tftai4VcPgThgCaZI10yhytGi4/LzDyeDLeUwicuRi/odnQTUhdWNFqsjz2Jc6 slqR5AjqajJaPfZo0+SuZwCWwr9BJtO/kOf5zrI1akxMo8hdDg2Xr8zuORDYMZLj qPUlLXlQ80zs9ny+ow1P3d3vtvpgy5trJcr725YCWXRXcgM+UBalNjzFzo8nn5j6 +TrMplviim5NMv+axFtuG0LGLVMTrWTUNpPY5j7TQmjnShH4DXvjygGL7P63Wyzr f6mAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelleektdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheff hfejjefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepkedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghhsegthigs vghrthgvtgdrrghtpdhrtghpthhtohepmhgrrhgtohhssehfuddtrdgtohhmrdgsrhdprh gtphhtthhopehprghvvghlrdhsthgvhhhulhgvsehgmhgrihhlrdgtohhmpdhrtghpthht oheprhgvshhhkhgvkhhirhhilhhlsehgmhgrihhlrdgtohhmpdhrtghpthhtohepiihhjh ifphhkuhesghhmrghilhdrtghomhdprhgtphhtthhopehmsggrnhgtkhesghhmgidrnhgv thdprhgtphhtthhopehmihgthhgrvghlsehprghquhhivghrrdighiiipdhrtghpthhtoh epphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Mar 2025 13:07:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741025220; bh=8ZoNa8aAacYJTrv63drtr/hgOSS6Y/GoePt7RWPqiqc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=QR826vkHes92SuRE7pd3GmBdyXZatWcRoDpBKunm3IruRJR+Tq/C32rhagns/ECv4 rig9QYA/fh/9OG6aw1H4rucZaIIR+twz9YwdIjNqoEAz8QxJ/GjkhSwBBUuibSCZKU HjavUJnCXkrSomjGAkm8rWXp/xsGeuWMlX9HDfjv2BjOLaaztS12AGyvx/I+FxyZOX 8P/HlagKjiXkraUvxFL3sb4W6DWmJQz2tvi+1ld5Onq6yhnc57Vzu8YBZlR9kD/Io/ t/ZNEA81yYSVyMTEmZbphhK4hZp93KLQS2c0fkgvVfNyisdH3dNRMjLHSI3/Ybqw+0 QZavnEQXJjsbA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 517618F; Mon, 3 Mar 2025 19:07:00 +0100 (CET) Date: Mon, 3 Mar 2025 19:07:00 +0100 From: Alvaro Herrera To: Antonin Houska Cc: Marcos Pegoraro , Michael Banck , Junwang Zhao , Kirill Reshke , Pavel Stehule , Michael Paquier , PostgreSQL Hackers Subject: Re: why there is not VACUUM FULL CONCURRENTLY? Message-ID: <202503031807.dnacvpgnjkz7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <127361.1740559688@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Feb-26, Antonin Houska wrote: > @@ -403,39 +381,38 @@ cluster_rel(Relation OldHeap, Oid indexOid, ClusterParams *params) > * would work in most respects, but the index would only get marked as > * indisclustered in the current database, leading to unexpected behavior > * if CLUSTER were later invoked in another database. > + * > + * REPACK does not set indisclustered. XXX Not sure I understand the > + * comment above: how can an attribute be set "only in the current > + * database"? > */ Regarding this XXX comment, what's going on here is this: a CLUSTER command needs to remember the index that a table is clustered on. We keep track of this in pg_index.indisclustered. But pg_index is a local relation, not shared across databases -- so the current CLUSTER command can effect the update on the current database's pg_index only, not on other databases. So if the user were to run CLUSTER on one database specifying an index, then connect to another one and expect CLUSTER without specifying an index to honor the previously specified index, that would not work. Naturally this is only a problem for shared catalogs. Not being able to handle this for shared catalogs is not a big loss. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/