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 1uUYu6-005AtG-53 for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2025 22:47:42 +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 1uUYu4-006Qqu-0y for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2025 22:47:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uUYu3-006Qqh-NN for pgsql-hackers@lists.postgresql.org; Wed, 25 Jun 2025 22:47:40 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uUYu2-0046zv-1B for pgsql-hackers@postgresql.org; Wed, 25 Jun 2025 22:47:40 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 314A17A0271; Wed, 25 Jun 2025 18:47:37 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 25 Jun 2025 18:47:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; 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=fm2; t=1750891657; x=1750978057; bh=dbjVPvZTwz c3fPJbcsidIRndwQ9l+uGFoozzSBohir0=; b=TIAD+VU5PBFFMixbwEbEOiMRvf Zd3aeuo78cxZDuJ3Pxo8GtOG2T0yKqM/PFWeBGOAh8CjnRhXtFsHxpoprSt3qEWl EgKgQCt0U4sORuiA9EWPgZkDLnS1yk8jyLG/ruiAn9cbslGFmbWJscR6A10Ltih0 PVYN0Nv9fvdxlCCJo6PoCKzAfxRfTzwWpj7DsS/v67PHYr2LbCCFPQXpZHe5QBuc bzegbDHT/On9E18LwIEyrfvOqWtbSWjejTxZ+s/t3BsxyiLV8XBOHxAoRkanEmet 4kqk+zCXKlwFCQy4Bh3MKGYwE4UvOV/3zV7cmJqTvhf8mmY2DwEcwEDTl/Mw== 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=fm2; t= 1750891657; x=1750978057; bh=dbjVPvZTwzc3fPJbcsidIRndwQ9l+uGFooz zSBohir0=; b=KT0omuhuSSRYtcKdLymgF6IYqa6ctouwJEhLRUJMuB0p5RYEc7C 4sy8YdzGLEpIYqENJQNRBDdhYG3sni0YdbVjSTikNlMwSgBkO6OeFYB7CU5RZMaZ Yy4aPxl5LD37Oq0Vr7F2JHRCZJp/ZaG3EI3OClOJPmLQNWFVDSsgH7K8F1VXvPDk ifkrxHWqO0UTf7Klqmb1sRJZU81nYv8muW/esKvhvqO+5xy0il+puVE4k8Zbq+lW vqTbep5CXmkmwaUwUPJuolbWWbumewJIthAks/1Vuj9d9QmZfCxHEcsz30byMy29 ZpWYzRQR3xA4fy/Y34swxCjUBMLk51Mu49w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddvgedttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeiihhhonh hgleehtdegudelsehgmhgrihhlrdgtohhmpdhrtghpthhtohepnhgrthhhrghnuggsohhs shgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsh esphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Jun 2025 18:47:35 -0400 (EDT) Date: Thu, 26 Jun 2025 07:47:22 +0900 From: Michael Paquier To: shihao zhong Cc: Nathan Bossart , PostgreSQL-development Subject: Re: Fixes inconsistent behavior in vacuum when it processes multiple relations Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eig6K8yes4wim4xM" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --eig6K8yes4wim4xM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 25, 2025 at 01:12:02PM -0400, shihao zhong wrote: > Just want to make sure, are we not going to include my original test > to catch the future regression? Also, could someone please let me know > how to check if the test is stable or not? On stable branches, you could reuse the patch I have posted upthread, even if it is not included in the tree. On HEAD and v17, you can run the tests of src/test/modules/injection_points/ with --enable-injection-points set. Making the index cleanup stable takes a certain amount of cycles because it requires a minimum amount of data, particularly for the btree of a TOAST index. The truncation check is halfly stable: it is possible to check that a truncation does not happen, but it can still be slightly unstable because the option may not trigger all the time. So, while the test success rate is perhaps close to 90%, with this rate going down on slower machines, it is just cheaper and more reliable to check directly the contents of VacuumParams. Note that your original set of tests only covered the case of multiple relations, and it missed coverage for the TOAST relation vacuumed after its main relation. -- Michael --eig6K8yes4wim4xM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmhcfHoACgkQnvQgOdby QH0jCw/9FKxkBLEeSRivWaqJ5dep2ZcqZQGK2gEcTYUtpKuP6Y+oBM6pUvIJkM+t Cll9y1X1vt3hNds+lbJv2FfyYXpZ5BDX9V2Rdi+8/qpxUHi1n2/F+dxJqQNJjMxl d/FVpgWCFqE+lh7uY39jMWiFUlpOq2E3VJF4I8KXtqrQZlEuMZWECR9LnYLztAAt 4kPJRJ7IhoLrGl6retL32ejcoWTuHeROO+s/dJ251vKnZWtUwXCBo1ngwZGNTGLH LQUjnrPB9s3PdUc4AhCHxka3yuvIkGeVCiAdKG7j73nHwS+97n7mBnwc/q82Kmbl +LvubAbeneblSOXUjppsp5E3p9dptUhpRzuF9lzSM4nUNoFOQmmFwc1a7/OjfmKZ ohw4jLcnv2jcmcZsmgOpPmTNR/XYjrgc6Wecm8S0qzhMxgwLDQYcRx+liugJRNA0 OhZV8LEjXkYf9nf/KC0HfU2O+VcsON+EoUKrCMUoa0lSHG3IwojLs8/H94gTPbhm 1Cu80sR9yqGU7OSavXalbmoPGrgQTPDEuICsQeC0tObKrs2bZq2FJwptYQp0AN9t wX0TW4GL8nmqRUL3eXbJbVje4PMOsDPWrNKwVfiFPp1K1i/TEgBgJffCXd9chlIF BDE+HFodIq++8yJlgsP2SDILWh0f33aecmtRrwpB1ZHYRDoe7vA= =1dps -----END PGP SIGNATURE----- --eig6K8yes4wim4xM--