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 1w2gWW-000VQa-2m for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 02:20:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2gWU-006ejy-0O for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2026 02:20:38 +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 1w2gWT-006ejp-2k for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2026 02:20:37 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2gWQ-00000000Hi1-2SZE for pgsql-hackers@postgresql.org; Wed, 18 Mar 2026 02:20:36 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 387AE1D00140; Tue, 17 Mar 2026 22:20:34 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Tue, 17 Mar 2026 22:20:34 -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=1773800434; x=1773886834; bh=UmTyLTV/6a mE4WNo8dimFh3PbxvcF12AmH9axLnTiEI=; b=gNMGYzx73vzeWpmhAm7gmEb9QB Kqu0kDVYAucDoDlodnmtdC2AY8FOyXipwPRNljeilcxHodMZ0Cmja0gJkrbmon3H m9GWPgyXt9CDoskznJKggbB91mAWBTtn9a5xQd2JXGxmdNj1WLBczhfd2PF0YKwX ves/lwAjeJWJVT+hqP7/4CorZEEgo4NcA1eaoD2VMgSDXVF8/oo1w9L523YDI7sO jkmgtc3Qtzh1p+/ZUgABBBSWRInwv2Bmm64lxHdNvWRv1aCbGsrba7vGjpknOHy+ 4Oja2ZgP3eMCBSDYq+CU/2oUjRPNqerR5QTCBdxADG9mIrgajKb5Ed6raCnw== 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= 1773800434; x=1773886834; bh=UmTyLTV/6amE4WNo8dimFh3PbxvcF12AmH9 axLnTiEI=; b=dpbt8nMQFKgVR5L2EFzM5lTE+RAHoKZOg15/bGyQAiyUB8KRwh7 CIH5TkwzFgFOrsbRKMNiuOVKbOiy+MuT8VbrbJSNJQUnd6vWIRnDH71yFG54IE/C TvcBt7ackPJvKBPJQdnjOZLnVYaMPsHqMzjZQzPPsNp0meYpsXaxNdLTZAsX6wY3 5tWPJ9DeDb9y23TiYnui9DCFq9AjV6WgMzY5Xnj6+f5cMkEUI/x1kb5iUSV0VwlL JfiJugiDpw0xX6JsHK+4kg/rzSP0OH2NWEZmDpuGqyx0r0m7cOAFHzIWUdRrPEyI walz6IjsHGW2MvT34JuJ+8vCIcoLutjpRkg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeftddvleduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepkedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepiihsoh hlthdrphgrrhhrrghgihesphgvrhgtohhnrgdrtghomhdprhgtphhtthhopegsvghrthhr rghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtghomhdprhgtphhtthhopegrkhhuii hmvghnkhhovhesthhighgvrhgurghtrgdrtghomhdprhgtphhtthhopehhlhhinhhnrghk rgesihhkihdrfhhipdhrtghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdruggvpd hrtghpthhtoheprghnthhhohhnihhnrdgsohhnnhgvfhhohiesuggrthgrughoghhhqhdr tghomhdprhgtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtghomhdprh gtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 17 Mar 2026 22:20:28 -0400 (EDT) Date: Wed, 18 Mar 2026 11:20:23 +0900 From: Michael Paquier To: Zsolt Parragi Cc: Bertrand Drouvot , Alexander Kuzmenkov , Heikki Linnakangas , Andres Freund , Anthonin Bonnefoy , 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="DqTRu2YjUFkRYj0/" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --DqTRu2YjUFkRYj0/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 17, 2026 at 06:45:46PM +0000, Zsolt Parragi wrote: > What do you think? I'm interested in opinions about both the specific > case, and the generic idea of using custom clang-tidy checks for > various postgres-specific checks. As I mentioned at the beginning of > the message I think this could be useful for other things and doesn't > always require custom annotations, in several cases it could work > without any C code change. That's an interesting idea to be more aggressive in terms of the checks done, but the invasiveness and the footprint this involves in the WAL insertion code paths makes it a no-go for me. Valgrind has proved to be quite useful over the years. Sure, it takes more time to run it, but for this specific issue I don't see why we should not continue relying on it, not reinventing the wheel, and it's served us pretty well. While removing padding is a nice practice on clean ground to make WAL records reproducible, that would mean forcing the rule even for custom WAL RMGRs. Some could say that they're OK to live with some padding, and that we don't have to be strictly aggressive at the code level. Different opinions are of course welcome, that's just my feeling on the matter about your proposal. -- Michael --DqTRu2YjUFkRYj0/ Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmm6C+cACgkQnvQgOdby QH2iohAAo+bWKudRiC8enlrl8e72cjRg8R0N0pDfRwyBydzyOzoT0F8nxBQvk1u6 +W0utQdxXCkDJ3Hdz/UF+QzAcSwybczaDeXYTsx0gkmmIctp4gtVIh40zTUB81+r vJoMA73o69lMk+h8lFuqVV3/GSgyvVkZtOUB6V2cCowWftfnBFQd+S/SLebyvixh EHPnLxYv6YPljlZUo+tIxo5Vw4heIVyXUrlM6EE234p+ZFL7i7YHzCICcCaHJxfm FqpV7qYgLdkcw8h6+1eNMBKQlgipag1zJO+Fpt4Ojpt513eYqAWuSBnARr1NOgsE b8w1rCBsjVr8+6P+Lrc6fmTE4PQCAitxMmLUS5gKlg3JISGqB1E8kMHb0y2a9mHR vj3KLzdcK2rzENDGzJuOTb9GL1N4fscbmtldS4QlamMExWDMJvHVd13iHkjbfUPH YG1n2WIXWsm/tfvAi8lRBWvfZTo2hQv0DDIsMTCPPToH39rt4ipzIZk/OpnI/g/e BneGto2BHcF05mJS1G23eoFowWRGugziMXgHekxfYsHVmIlQEa++9Ekdd4ST+0s6 4ShZqS0n0ux35YFH6QcjOIyxzIc8RdtYgLszSsIaTBOR1WnsgK47xzXvETYRqvjK biiBSheMW4tPthTb1jPkvY9psPXqjR8VHoFFssKlkBl4HlhzXZM= =tCKr -----END PGP SIGNATURE----- --DqTRu2YjUFkRYj0/--