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 1wFBVW-004p7l-02 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2026 13:51:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFBVU-0092dG-35 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2026 13:51:16 +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 1wFBVU-0092d8-0V for pgsql-hackers@lists.postgresql.org; Tue, 21 Apr 2026 13:51:16 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wFBVR-000000025ml-49wZ for pgsql-hackers@lists.postgresql.org; Tue, 21 Apr 2026 13:51:15 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1124E7A029A; Tue, 21 Apr 2026 09:51:12 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Tue, 21 Apr 2026 09:51:13 -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=fm1; t=1776779472; x= 1776865872; bh=zUSxZW5Ffp126pyeTB25lpdNBVTXvKozlEElgbO1xJU=; b=O huIUXTPUrULFrSkGb46jJSJxuCoR3jWB44w5aGSFY7gVtbvUzlK7CYVQ357JR8Rv ZscxQeIb8FTQBMABTtdVeFvI24tX5p7KPJyZAjnRpUFIFvnNgYZCXWsySuYgvXni 9UxiVPTHYrG3wuWVtMtOhAa+3fbCGQFj8d2YPzyESSk6csSi75UiiDMLQ6g5Zk8V 1WTVPqSRxCIlLwU0cZWPdxoQ2f2OysDlZtvFArqO9puKZyRo31hmsXKSZpFtEPZH SJ/tQy/9+7QdAOKoY2P1TquvWFoO1mOBNWGk+07Go9WxCTQbfANYu+xsgLe/IAAn g8hNXjEnRMPcLzb7XdDpQ== 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=1776779472; x=1776865872; bh=z USxZW5Ffp126pyeTB25lpdNBVTXvKozlEElgbO1xJU=; b=O9UdWQ9Ij6dh63wqo wffWIHtcH4exk/IUWsK66378bEyFz6Dvjo/FZgCBGcj9dB0HZsdtFxGcIWS378FK JKFrhW3Erel2NM1jnWLhD/ptuAKDogRNVEVQxM9gxjsQqhnCrqXMXWBxEFeQWnzF E4HK9E4ONoQ87FeAaMZ7KZXxqjJM1DN9AFQ1fBidEVux17VwDu++Onjy2y/f2T9G XKp3pA0uliXP5sxsbKS+u98telzTOO3uMsDBRuuLUbj7o4HJOb5mJ4HDfOcHdnT/ NjSE7lIKShyKOhm+JR21qeO8Q8blsMzQuxx5PDf24tKFENJdxJZMHUUPQ9FzeVkb Vy3CA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeiudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepteeuvdehffekvefgueehveetveekgfegtddtueefueehuddutdfhfeff hfejfeffnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvges khhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhrtghpthht ohepughgrhhofihlvgihmhhlsehgmhgrihhlrdgtohhmpdhrtghpthhtoheplhhirdgvvh grnhdrtghhrghosehgmhgrihhlrdgtohhmpdhrtghpthhtohepshhmihhthhhpsgdvvdeh tdesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlih hsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Apr 2026 09:51:11 -0400 (EDT) Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 22A32B03195; Tue, 21 Apr 2026 15:51:10 +0200 (CEST) Date: Tue, 21 Apr 2026 15:51:10 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: David Rowley Cc: Chao Li , Postgres hackers , Peter Eisentraut , Peter Smith Subject: Re: Cleanup shadows variable warnings, round 1 Message-ID: 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 On 2026-Apr-21, David Rowley wrote: > On Tue, 21 Apr 2026 at 19:02, Chao Li wrote: > > PFA v8 - rebased and fixed a few new occurrences. > > Which of these are new to v19? Can you separate those ones out? IMO, > we should commit at least those, as those won't cause any backpatching > pain. I agree. The others are v20 material. Specifically about 0003 (v20 material for sure, as this is ancient code), I don't like this patch very much. I wonder if it would be possible to do away with the idea of using these codeFragment things without introducing a performance issue here. Is that doable by turning these macros into static functions? -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Puedes vivir sólo una vez, pero si lo haces bien, una vez es suficiente"