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 1w5QF2-003EiM-2n for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 15:33:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5QF1-00En4n-1G for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 15:33:55 +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 1w5QF0-00En4U-2b for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 15:33:55 +0000 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5QEx-00000000zLu-3Ga4 for pgsql-hackers@postgresql.org; Wed, 25 Mar 2026 15:33:54 +0000 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-7d4c12ff3d5so4143252a34.2 for ; Wed, 25 Mar 2026 08:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774452831; x=1775057631; darn=postgresql.org; h=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=JpXazRj6jtiZB/gQny4sW1DrUMqgXYyyOIkYFWDAhQg=; b=X0EzeqypMuiWTu1TnWya8uDP7Ik0wyKCjUNsraEcMcLc2UM1Qus4Ywc5rcvGQC3k6O GhPPVhhypacf+dnuua4wZHhutzQko8LISXKVTMS/RgPqknoNj5M5fUGdOTP3IeV9Gat0 c9Q9aGitpGo8rHzeBvfkgW1xnxgyxD/pls7hCOmI1QbPD5oppCmdl9wZfZ181i5cnRFa rAeaT43y8GwP3aP9m09rE/vGC1MctO1/Myoh9+eTKSLymVihJyK9XWF+grjx0znxzIlj h0wnRPE/hgo56JtYT8wedfan+BwwI5V/+BY24w6cQoj7x+fNxoAS1DHBth4Rvh0WHuEZ 3hXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774452831; x=1775057631; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JpXazRj6jtiZB/gQny4sW1DrUMqgXYyyOIkYFWDAhQg=; b=aPEnLSqZmyAt+GV4y1BQ8PaUbzAmY12z9e7yC5x+BwGBZ9qtEF3G8nUMCGGloVN621 hwWbUINwFiF9zxHVLj+SooJR9PpP26Ba7QXvgS69+cW5zrITvwekDx3nVV/5gaBU/Kkf TJ3qJhwAGjMJU5wrrL11YCgrgUZLHBObQ9jflV3VIHTEd4oH+gDFNwCUZpLjttHjVUaV ItqjBAKcLduo4O/Hk7tpvUqui5mgQ0vfphZp130FBHMJgJ4c1n1/1A4lcq2LojTr6Ir8 +zchC6EqFjOoijCrjm9t+/0b623yIhg9UrVlc/+8V3uVAlXmVev7wdrkyZZ0IhIjDygm LHKQ== X-Forwarded-Encrypted: i=1; AJvYcCUtG8hZp+WQNiIqZqKGdelecmkEaL+TA4O0ly2//eYq23Tb1exe1nCEEBCO4gdjXvdRMSqE2nbwBPuhbKV3@postgresql.org X-Gm-Message-State: AOJu0YyxYrDNBHIi17XwR0UUgCbmvDbYQPNqjEXFGFDaApRRQb8Pt0Mj 0Ch/M1ZfD9fC1X6Khv4NTkSA0VrtMYEE5ZbyzRbw1G8KoePoZCVNiqiY X-Gm-Gg: ATEYQzwOKEhWfgnaDCtN2pecRNBSrpaHuEQa2cF/5MNLNfmrovxqBTGi37NSEnPXuHy NFI/42h3MYrkj2StpMhBTK3+zVGUa+A8gPraKkqwnSl7TuWFgxM1H9vUviUgO83yt9OxIeAObwn RloGRjbzWxb84yIRPhJzdLXma2OCLLKmmSXqDHkRFllBmjOnldsMbbYu4TULdSouJnCwULKa7WY tGZsQk4+fhMnE6pc8itK+RI8k18uMvYghQNyffWQ4eGjNX9TPIjzwg89H0bC0iojZJgVMue7m7z zROkqAbLsIHDwWEAAlUjY2Drh4Ped3relBiRXblkK0PxOyK+O2QASE1X45hsHoMYkAWhVe3GPIX okp54CWnC7muRTdCmg9IRTf0NebRcqxEaBty9JuYjypjoFVEBYGYsVzCZPM56xpfhdZypjI5gxH s4ra2Ml421Hdry+UgCxmHOsQsabN+BgyNGAtS5LfVfDKv1PIyUAlGcXxP9Phutcsd48c5BGuO1c 5xPK1BOymYCyFCIDG4SZA== X-Received: by 2002:a05:6820:c8e:b0:67d:e7c3:3c65 with SMTP id 006d021491bc7-67dff560547mr2148960eaf.56.1774452831196; Wed, 25 Mar 2026 08:33:51 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-67e0aa0d18dsm183058eaf.6.2026.03.25.08.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2026 08:33:50 -0700 (PDT) Date: Wed, 25 Mar 2026 10:33:48 -0500 From: Nathan Bossart To: Andres Freund Cc: Michael Paquier , 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: multipart/mixed; boundary="dBKjKIhnmUwGVOll" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --dBKjKIhnmUwGVOll Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 24, 2026 at 11:29:52PM -0400, Andres Freund wrote: > On 2026-03-24 16:47:30 -0500, Nathan Bossart wrote: >> + VacuumParams params_copy; > > I'd maybe not name it _copy, but params_local or params_table or such, as > somehow it seems a bit odd to modify the copy. But I can't really explain why > it feels odd. params_local WFM. > I wonder if more of the code in the function should be updated to use the > copy, otherwise it seems like it could more easily happen that a part of the > code not using the modified version is moved until after a modification, and > the code author assumes the modifications now have taken effect. Yeah, I was waffling on this. I updated the rest of the function to use params_local instead. -- nathan --dBKjKIhnmUwGVOll Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v2-0001-avoid-including-vacuum.h-in-tableam.h-and-heapam..patch