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 1vNgkJ-00AuXN-0P for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Nov 2025 00:17:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vNgkH-005ZDp-20 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Nov 2025 00:17:25 +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 1vNgkG-005ZDg-2z for pgsql-hackers@lists.postgresql.org; Tue, 25 Nov 2025 00:17:25 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vNgkE-001IC6-1q for pgsql-hackers@postgresql.org; Tue, 25 Nov 2025 00:17:24 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 480897A0191; Mon, 24 Nov 2025 19:17:21 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 24 Nov 2025 19:17:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.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 :references:reply-to:subject:subject:to:to; s=fm3; t=1764029841; x=1764116241; bh=5g6zKmq+GO0zS2C+3vb4mEuUTYQjc290FHslX8O7qic=; b= eavy//TqUWj4REBYoZ6o/3vw1rbfmNfHG8j5P0uW9ZTMvT8GjP3z0REmBfCogI5f UXD0IXjDkekyDsGSLeAKtVpN25SXUtVaCzY3BD8rPsB73QHySAvKIY8hHgVlRr1O 6RFSLpqfhLTl3SDjm9sTvbIxHxl54N0AwRH+a1LLyfL+H+CaGYvyi7r5PL1qFDMx lNYV1txWm3aAVEJINlGZYTYMpAcxI6l6szDKY/oWwtho+q/WV53bo16hoOQQ5VkW wdFZfyWdXLqo55FzAVKjRKj+LneSgr5fUr2AtpumwuEFjhj+q/ucrZyrhppCGtp1 C5qcaFuhRP2oE0tLa4EW9w== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1764029841; x= 1764116241; bh=5g6zKmq+GO0zS2C+3vb4mEuUTYQjc290FHslX8O7qic=; b=A xrI9EwgIBdFvZcGDa4LDmDxoT9ydQaDn7pa32gSCCmNAzcBc81a0YH16lySDTynU JWDc4TpaoPoy2YZBWRf1hXFfU8+4gb3dg4kRYcLleVG5OwMk3SJ+otkmadaCqBZ/ wEiIj+iD0LMI4CUtAos2bMk7JyRHM2ccf3teyxTsWMy6zE4IPNDNxZkx9K64nzw6 I/vWkAn0qdxCZ1qu1G3HxDfeeeUliK701vYldCP3G4vLKh0xM4gjkzB0MVpbt8pd GLS9DPct6M8W+8kYbYV3uW7ekhoAy6sVvd4hQ1h3hQFSohRQMnsWB05DNS3Z/dQJ hzsehI5wVuJgcpZgjRHrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgedttdduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggugfgjsehtkefstddttdejnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedtleelvdfgjedvffeiueekfeeuleffhfegfffhgfffkeevueehieehhfei gffhvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepkedpmhhouggv pehsmhhtphhouhhtpdhrtghpthhtohepsghovghkvgifuhhrmhdophhoshhtghhrvghsse hgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgvlhgrnhhivghplhgrghgvmhgrnhesghhm rghilhdrtghomhdprhgtphhtthhopehmihgthhgrvghlrdhprghquhhivghrsehgmhgrih hlrdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdp rhgtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtghomhdprhgtphhtth hopehhlhhinhhnrghkrgesihhkihdrfhhipdhrtghpthhtohepnhhorghhsehlvggruggs ohgrthdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrh gvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Nov 2025 19:17:20 -0500 (EST) Date: Mon, 24 Nov 2025 19:17:19 -0500 From: Andres Freund To: Melanie Plageman Cc: Matthias van de Meent , pgsql-hackers@postgresql.org, Thomas Munro , Heikki Linnakangas , Noah Misch , Robert Haas , Michael Paquier Subject: Re: Buffer locking is special (hints, checksums, AIO writes) Message-ID: References: <6kmid26do57ykqfpvq6iieniy4djsymhrypkjccazq5g4bbe6a@2y6owwv7qpex> <3je3ahgf7rrmmurxo6hnlhg5d3ffwfrtjwjxd6jm5srlv5iebp@vxqk5qtgmowr> <3w7v3w6a57jnssokap4k7thoekig72flnyhd4wp3yftzdd7lm7@f6lpcfen6hr7> <6rgb2nvhyvnszz4ul3wfzlf5rheb2kkwrglthnna7qhe24onwr@vw27225tkyar> 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 Hi, On 2025-11-24 16:04:41 -0500, Melanie Plageman wrote: > On Mon, Nov 24, 2025 at 3:58 PM Andres Freund wrote: > > On 2025-11-19 21:47:49 -0500, Andres Freund wrote: > > > 0001: A straight-up bugfix in lwlock.c - albeit for a bug that seems currently > > > effectively harmless. > > > > Does anybody have opinions about whether to backpatch this fix? Given that it > > has no real consequences I'm mildly inclined not to, but maybe there are cases > > where the additional wait list lock cycle matters? > > Since it is a mistake, I am mildly in favor of backporting to avoid > confusion for future developers. It's pretty weird that LWLockWakeup() > has to be called again to actually unset LW_FLAG_HAS_WAITERS. But > since it's not really harmful, this is a very mild opinion. Thanks for chiming in, done. Greetings, Andres Freund