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 1v6y0S-00CiIQ-2m for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 21:17:00 +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 1v6y0P-008hEJ-QH for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 21:16:58 +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 1v6y0P-008hE5-G5 for pgsql-hackers@lists.postgresql.org; Thu, 09 Oct 2025 21:16:58 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v6y0K-001Irw-2S for pgsql-hackers@postgresql.org; Thu, 09 Oct 2025 21:16:58 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 76A931400009; Thu, 9 Oct 2025 17:16:50 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Thu, 09 Oct 2025 17:16:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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=1760044610; x=1760131010; bh=KzUl0DUns6 xvNUcNOnj6SkDas+tflfQ/F5gzTtUdMug=; b=q0FCEitxvdrep2IGIPG+4fl9L7 1IPc9SSW96hZiSE5EUL8QBXcx+xiHZHS1A6d0Tzt30wJsCHdK7SJHDkGq7y3Pmdg fSV0FMtK8hZ292SFxL0y+PKjU6/XOt1hIzozwCjEIjojzv2DEfvTmuygbjS3FU+g L0zpAKvrBo4ygGCV5DuqBSH0ny57zNlO9INjFWCYiL9Rk5GHZ4wRrAZa2BygteOd j2VkcTkZmzllwHpCaiYsYvodA0f8P+l3BWEvk8RMQRSAjyKDJGUxuOGKoYHB0XMf C+3MpAkMino65Rursv+P8lUzxvnfh2Y5uQpLm1gSmFXDuEG6OgRmp/mRHWhw== 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= 1760044610; x=1760131010; bh=KzUl0DUns6xvNUcNOnj6SkDas+tflfQ/F5g zTtUdMug=; b=zDbXMO5psMdEP/jLk4F09pXSyjfD/pmrXTe+VRZHC5+Zbgfz4iw tuEj4AwByab/7Ws8lxKlrNsnjkt6Mu4RJc1fn1RjH9BqVRp/jyO4aV7N0ILG9XZX avpEWOh6fym1LtbOFUYXTlc+FfVpcWDA1fZuD6/XDw7zJYGb+86038dEKkvsmf0V xRPoJfJ3dY5xNeHxRb/dwjm1zReu66jAm2TkZwpkqoT6KF3rsHLBbxtJbNPwY1w+ BJuX0PGxN8ATdp+GFN1uYdvjr/sqgwzaaOCWmKfBBRN5pm8/6WoSZkoby+ZECKXT HxYxhyL4Nfww4pXdWu/196kQhcmoXekrAGw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddutdejvdegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepfeffgfelvdffgedtveelgfdtgefghfdvkefggeetieevjeekteduleevjefh ueegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgtphhtthhopeekpdhmohguvgep shhmthhpohhuthdprhgtphhtthhopegsohgvkhgvfihurhhmodhpohhsthhgrhgvshesgh hmrghilhdrtghomhdprhgtphhtthhopehmvghlrghnihgvphhlrghgvghmrghnsehgmhgr ihhlrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhdrphgrqhhuihgvrhesghhmrghilh drtghomhdprhgtphhtthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhr tghpthhtohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhrtghpthhtoh ephhhlihhnnhgrkhgrsehikhhirdhfihdprhgtphhtthhopehnohgrhheslhgvrggusgho rghtrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvg hsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Oct 2025 17:16:50 -0400 (EDT) Date: Thu, 9 Oct 2025 17:16:49 -0400 From: Andres Freund To: Matthias van de Meent Cc: pgsql-hackers@postgresql.org, Melanie Plageman , Thomas Munro , Heikki Linnakangas , Noah Misch , Robert Haas , Michael Paquier Subject: Re: Buffer locking is special (hints, checksums, AIO writes) Message-ID: <3w7v3w6a57jnssokap4k7thoekig72flnyhd4wp3yftzdd7lm7@f6lpcfen6hr7> References: <6kmid26do57ykqfpvq6iieniy4djsymhrypkjccazq5g4bbe6a@2y6owwv7qpex> <3je3ahgf7rrmmurxo6hnlhg5d3ffwfrtjwjxd6jm5srlv5iebp@vxqk5qtgmowr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3je3ahgf7rrmmurxo6hnlhg5d3ffwfrtjwjxd6jm5srlv5iebp@vxqk5qtgmowr> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-10-09 16:35:44 -0400, Andres Freund wrote: > I pushed a few commits from this patchset after Matthias' review > (thanks!). Unfortunately in 5e899859287 I missed that the valgrind annotations > would not be done anymore for the buffers returned by > StrategyGetBuffer(). Which turned skink red. > > The attached 0001 patch centralizes the valgrind initialization in > TrackNewBufferPin(), which 5e899859287 had added. The nice side effect of that > is that there are fewer VALGRIND_MAKE_MEM_DEFINED() calls than before. The > naming isn't the perfect match, but it seems fine to me. Forgot to say: I'll push this patch soon, to get skink back to green. Unless somebody says something. We can adjust this later, if the comment and/or placement of VALGRIND_MAKE_MEM_DEFINED() isn't to everyones liking.