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 1wA6Uw-00247q-2h for pgsql-committers@arkaria.postgresql.org; Tue, 07 Apr 2026 13:29:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wA6Uv-0005Ou-0N for pgsql-committers@arkaria.postgresql.org; Tue, 07 Apr 2026 13:29:41 +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 1wA6Uu-0005OZ-10 for pgsql-committers@lists.postgresql.org; Tue, 07 Apr 2026 13:29:41 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wA6Us-000000012RA-24B4 for pgsql-committers@lists.postgresql.org; Tue, 07 Apr 2026 13:29:39 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id B94AE1D00221; Tue, 7 Apr 2026 09:29:37 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Tue, 07 Apr 2026 09:29:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1775568577; x= 1775654977; bh=hCsMwInsXEsyB8wabKVmIXcUsA0bfPVkNLd3ERAO0P8=; b=G hN9UuU3xYojg+n9tMjSkrEEbRd02o7a69hBnzpBVmjF++2UB2o/4OJmdrgb0OIEP 9AC60IwMZoWXm6zVLsbR1UVM43KwVy5MdGHzowIiRCLRVcG2KSaQ+eLgvUOTTvXa JnPGOzlRDQeNmXqoMJjzeIOxpElxWsXCsvse8KzkFp6sDMGEbDZguaHkekmnthcI u9+0s4gez6HTdf/Xfsp3G2+YjaI01Nt24gcJJoC8AtXZOv1k4vTIf2syYrGZtiip ssfBPh/UJ9wOQkKy5M28fDPl+/DR+OG9YaBuDFOM8VQhDsLmLMV/XKlNofnoyGZl 2jpwxFVjJarvclHU/6Uzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1775568577; x=1775654977; bh=h CsMwInsXEsyB8wabKVmIXcUsA0bfPVkNLd3ERAO0P8=; b=KCqVuZpsBqZYrtVbT z32NJ3m8NYYrffm8Hcc/YalwBLYJasq6OaeUkTbZsKf6XaYM3IbL7Hy8uSWVf5Vl Uqt925JRjYP3GzS81ev9mNylcWWobaaZfXiIpGrkQ+acbSjsUAQ3ZH46e0hH1eJz E1ewx/Rnv4mcV74WkJV5Dxhqe5B5D6Vx1vOspY1f5quTpPGHmE0x8VCt/Fwfx9+w 60K3RTMx/zzdKfu/RIUMXw0SPpc21fgoy6K6kuiVi5pypCuTisjnbaOVFsqlNqxD kyMSwTbhuThos0Zy23be9xggT9fUPU8bUzymTap59Gx7YNl9Lh9bf0OBYRXkhknr Cd35w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvtdejiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkgggtugfgjgesthekredttd dtjeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehk uhhrihhlvghmuhdruggvqeenucggtffrrghtthgvrhhnpeekgfekhffggfehvdfgtddvvd eiheevudeitdeiheekudehgfetteevkedtfeekgeenucffohhmrghinhepphhoshhtghhr rdgvshdpvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdr uggvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope gsvghrthhrrghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtghomhdprhgtphhtthho pehpghhsqhhlqdgtohhmmhhithhtvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrd horhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Apr 2026 09:29:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1775568574; bh=kzNtJvLAe0cE3nOXZDsc+VhsCL2gqeK0SjLe3NY92pM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=7lc3A64/3tL6u+GZzg/UVXjbg+CRxK/LUhMLN6SnmYXzXlG595qgBt/exCeg2Ykx4 78k+1+Fi8k65LJhyuw1JGU6dEuzifv/dGP/Q60eegHghV14r2u1IzxrbX2d/HV22V3 StzF7Sdh3rU8ST/oi2X6W3GkLnykUqsJyL+YZxvNE1TEowVwgkevMKHrF8AJkbK9Os Ivjdp2N3gFpEQv1oYPQCrcBiumv5ZKNrxwrOSH91BfwEYPQ7ioxywC9NTM5b5V17sv BK1FylcEtOJiLmOToVwHeXm/5fnB9v/DkAT8ucQSo1xM6iXUflgESeSgBEN5HccMyz liRXbx/x0HpAg== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id BCFE87C; Tue, 07 Apr 2026 15:29:34 +0200 (CEST) Date: Tue, 7 Apr 2026 15:29:34 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Bertrand Drouvot Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix valgrind failure Message-ID: <202604071325.oar274bbljbq@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, On 2026-Apr-07, Bertrand Drouvot wrote: > - SerializedSnapshotData serialized_snapshot; > + SerializedSnapshotData serialized_snapshot = {0}; > > Should we use memset() instead? As "= {0}" is guaranteed to zero padding bytes > (for object that has automatic storage duration) as of C23 (see Andres's reply > in [0]) but we require C11 so far. Hmm ... I'll wait for skink to fail with the fix that was committed, before making further changes. It may well be that it works okay as it is now. > I wonder if we should introduce a new macro say "INITIALIZE_PADDING" > that I proposed in [1]. > > [1]: https://postgr.es/m/ablMZvnGhX8h5GgK%40ip-10-97-1-34.eu-west-3.compute.internal It's not clear to me how that would be used exactly (surely it needs to be part of the initialization? But what if you have to use memset?), but the idea looks rather ugly. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/