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 1w2ks6-000ZNc-2a for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 06:59:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2ks5-008Bt9-27 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 06:59:13 +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 1w2ks4-008BsQ-2x for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 06:59:13 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2ks1-00000000Jcw-24X7 for pgsql-hackers@postgresql.org; Wed, 18 Mar 2026 06:59:12 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id 623E01D000AC; Wed, 18 Mar 2026 02:59:09 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 18 Mar 2026 02:59:09 -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=fm1; t=1773817148; x=1773903548; bh=wANKvDxDk9 5t7GYP5ea6PqF/KRz75tz4UXefB3K+CBk=; b=g5jHcMInB+w9MVMrNzZc8dN4w4 g7HLzG4drK7jZfd1MCmHntABTlyHMeDNR06celLCChbUKdguF1dvh8JtGW1Tfrco 07LTMyOiHJZj3GWbbhyyHbdHtxnD8KJ5HlinFrV7VlvTCj9OoOte3shWLJylpFvm YH83LokwYTpl/N14oQp5kkrzStiDjTLK4smhcvcbf3tNr9YFsWurSyPzo470oyA2 RGRoL5N7GdARSePEeXJoG8y5V17iPchzmyuAvrI2FwsOnIugJ7dxi00SdDG0wjX9 CjeJOsmO92iBdf4+5iHFBN65HJWam7NI1++ZoSNXZpEmEx32rMvdvsF3OlJQ== 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= 1773817148; x=1773903548; bh=wANKvDxDk95t7GYP5ea6PqF/KRz75tz4UXe fB3K+CBk=; b=OwdYWUIHMms2vsPDkBEqQUaBfwXnQ0WeeJmvIIPh6Qng7zEHMZ2 MJdI12iJu+4PCWac8U/2zVOVmh6u49ybql5fvfk6KdzrHM61TfSb6WkJWiM8d7bs oOc/DWyCQxGNxtN/H/2RCLKfBZ6J83PePtx2m7HSY+wrdm97HmCF8U011o+cL/43 WQXooI4xRRK8JW3vRuqKisW1BpJjiLuWWtgFhDDmZUa2P6ezHJg+2ze6d/VRsM2N 1wRg5LrVvvBuXE/groH+Y2D/GqGLzQaAP6V7I1ZpwAyf9TQnvqSHTvloHkihuTIk bs9HBx5oISU1G7DpnMIKk4LT5Oarmb392yg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeftdefgeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtdorredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffduleehgefhkeefgfeftdfhkedu tddvhfdukeeggeehieekffelhfelkeehteefnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepjedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghkuh iimhgvnhhkohhvsehtihhgvghruggrthgrrdgtohhmpdhrtghpthhtohephhhlihhnnhgr khgrsehikhhirdhfihdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvg dprhgtphhtthhopegrnhhthhhonhhinhdrsghonhhnvghfohihsegurghtrgguohhghhhq rdgtohhmpdhrtghpthhtohepsggvrhhtrhgrnhguughrohhuvhhothdrphhgsehgmhgrih hlrdgtohhmpdhrtghpthhtohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhm pdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Mar 2026 02:59:05 -0400 (EDT) Date: Wed, 18 Mar 2026 15:59:00 +0900 From: Michael Paquier To: Alexander Kuzmenkov Cc: Heikki Linnakangas , Andres Freund , Anthonin Bonnefoy , Bertrand Drouvot , Thomas Munro , PostgreSQL Hackers Subject: Re: Fix uninitialized xl_running_xacts padding Message-ID: References: <70674869-2829-4b06-ab93-2f82ea51578c@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WRX/hLKtbnAVUHzj" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --WRX/hLKtbnAVUHzj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 16, 2026 at 05:14:10PM +0100, Alexander Kuzmenkov wrote: > +-- Test insert-driven cleanup of dead index tuples (_hash_vacuum_one_page). > +TRUNCATE hash_cleanup_heap; > +INSERT INTO hash_cleanup_heap SELECT 1 FROM generate_series(1, 1000) as i; > +DELETE FROM hash_cleanup_heap > + WHERE ctid IN ('(0,5)','(0,10)','(0,15)','(0,20)','(0,25)', > + '(0,30)','(0,35)','(0,40)','(0,45)','(0,50)'); > +SET enable_seqscan = off; > +SET enable_bitmapscan = off; > +SELECT count(*) FROM hash_cleanup_heap WHERE keycol = 1; > +INSERT INTO hash_cleanup_heap SELECT 1 FROM generate_series(1, 200) as i; > +RESET enable_seqscan; > +RESET enable_bitmapscan; > + > -- Clean up. > DROP TABLE hash_cleanup_heap; Hmm. If I take this SQL sequence independently or with an installcheck, the one-page VACUUM path is taken during the final INSERT, but that's not the case of a `make check`. Could this be made more stable? I have not spent a lot of time on it, so I may be missing something obvious, of course. -- Michael --WRX/hLKtbnAVUHzj Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmm6TTQACgkQnvQgOdby QH0HVQ//cCBaElpGgGnt/J6/9pYqoPFQQoFinPDjL3mwo14se6eKkClicfTm2T4y mePZa+7zdZjuazLknRXVHr7V1FQMKPgFtgVxGNR6UqSulY2ThkHgDsJNAL2sVRBa EoLpzZXuhzG5pegTz04eHJgJE4lIW+Gb2U2K78RLZ9Ehg/RHeqIR2qOEXwEXgz9N FvL1H11ABJA/OYQ35C+aE2/dKWFYNA8a9ZDQi02xHwwIGQELR3aX7gglPqXW7BBq qm5LVXLZfvld2vdzFt2mFCOwK1zSyVuesMU5nj+P5UUOYoUInHtA1+oI0Xw4647g FFic566tMRtBpCV0VfHuT/3liTXhV4Xx4iH0Xxycd/miQTZ3AXhj0brvEA53OBv7 Wv/nY51ZSF/GUneyThAoZBwBb6fjjAOheHzFb0pDE1Lp5LP6Ydu3IX7VzcHnJMBc w4bUso6rtzzpvtSh/tZRIYRc5Tv3ufiQq/oICfyO3IExWs/6HFFuACWryyErAcVA HljUsj7CraUSZfhRJMInGSb/jQ4jJrkIr0JegL7f9DOnjeRzRi00C307JO8ktdOp CsyDq+FHrCpPd8568dRdNuewKcT+2k0LfA6SxTfwX/OZ3aa4jnBJGKG0qrlbIeR8 +HSwzU22tw7mqzsT/aooX0unbwlPICLEY532WmlDzZK7OuxxpzI= =YkPW -----END PGP SIGNATURE----- --WRX/hLKtbnAVUHzj--