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.96) (envelope-from ) id 1w3chX-001Oy4-1q for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2026 16:27:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3chW-007Emc-0B for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2026 16:27:54 +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.96) (envelope-from ) id 1w3chV-007EmU-0P for pgsql-hackers@lists.postgresql.org; Fri, 20 Mar 2026 16:27:54 +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.98.2) (envelope-from ) id 1w3chT-00000000C8f-1ZWc for pgsql-hackers@postgresql.org; Fri, 20 Mar 2026 16:27:52 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 31025EC00BF; Fri, 20 Mar 2026 12:27:50 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 20 Mar 2026 12:27:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1774024070; x=1774110470; bh=ek7zZu7ivJ IGOGHObUbsMcOHcBJGrSpNPV5NcW4qwXc=; b=0Yj7effbx9NSToFKUz249bStyT atQisjJ8GzY4X6qOgUMTE/BAqy+q1VOCgHMZcvMg0ia36DyUinS6FXPlhEt6382F g7m/MVTTGxLgkm3KmnjnVet0aCD5JdSreciLVA1w6wBh5o8lCTZcuDat07niJbZW Y9lNfzghVp9T0Kz/Vw2IARxsz8zenwgntcd/nFfKVWWi8wVg489higfCKvyAe/ep 8uTJhqNeAzrOQEDVZ2Szw5X5mxosYXNEb88qfGaOWMDznN7qIuGj/NxHskDUO417 QqJ9BFK6mJJ2vCuS6kcUUg2jeoOWinjKV1LY/yFG3SngRw2Y9Mmyc8+dL4kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1774024070; x=1774110470; bh=ek7zZu7ivJIGOGHObUbsMcOHcBJGrSpNPV5 NcW4qwXc=; b=MVfkVZ2tz06CYd5Zw2vplPXbFA2lheTuxU8w3wWkrSje152+A8z 15dP4jEYXV9DGnhdHwJ839S8KZIoq6QxLo/FQI5rXBFsQqFC+ORe/3NiOTVFkW2h RTVeH9WC9VxF70rh+5ElMWWEWRkxmqc25SyCmLvfJYbKL71Nn7X/MYijYPtXNeHq P8OBLQu5aWmgGsGZIUBpclYh1WSHnJXMIyQluEhVn6tKj+8icMFzqxvBHdvadSgU IIEmfHGbXkudnkzOCHnGJoknC15TlBm2/a0eGLzv9r20UeX/9DquHLhLzlXWwhsJ zhpu8jnKVT2nTtYno1/UBV1cRhImuAXUnrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefuddtfeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhephfdthfefheeggfettedvfeeufeegvdfhgeelkeeifeettdevvddtueetffei ueeknecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgii vghlrdguvgdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpth htohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtohep iihhohhnghelhedtgeduleesghhmrghilhdrtghomhdprhgtphhtthhopehmihgthhgrvg hlsehprghquhhivghrrdighiiipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshes phhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Mar 2026 12:27:49 -0400 (EDT) Date: Fri, 20 Mar 2026 12:27:49 -0400 From: Andres Freund To: Michael Paquier Cc: Nathan Bossart , shihao zhong , PostgreSQL-development Subject: Re: Fixes inconsistent behavior in vacuum when it processes multiple relations Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2025-06-30 15:49:49 +0900, Michael Paquier wrote: > On Wed, Jun 25, 2025 at 10:21:03AM -0500, Nathan Bossart wrote: > > On Wed, Jun 25, 2025 at 10:31:35AM +0900, Michael Paquier wrote: > >> Attached is the remaining patch for HEAD, planned once v19 opens, and > >> the tests I have used on the back-branches as a txt to not confuse the > >> CI, for reference. > > > > Looks reasonable to me. > > Thanks. Applied on HEAD, then. I was just looking at the includes for tableam.h - a quite widely included header - and got rather sad seeing vacuum.h in there, as it has a quite large dependency tree and tableam.h is obviously widely included. I was surprised that I would have added such a wide include when working on tableam. Turns out I hadn't - it was 2252fcd4276c. I think this change was quite ill considered. Look at the dependency tree of vacuum.h: https://doxygen.postgresql.org/vacuum_8h.html That's a *lot* of headers to pull into something as widely included as tableam.h Why wasn't it enough to add const markers and keep passing by pointer? Greetings, Andres