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 1vqhP3-00G6Mi-2o for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Feb 2026 00:51: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 1vqhP2-00BqJ3-32 for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Feb 2026 00:51:25 +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.96) (envelope-from ) id 1vqhP2-00BqIm-24 for pgsql-hackers@lists.postgresql.org; Fri, 13 Feb 2026 00:51:25 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vqhOz-00000000PAI-1mzq for pgsql-hackers@lists.postgresql.org; Fri, 13 Feb 2026 00:51:23 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id 43AA1EC05E9; Thu, 12 Feb 2026 19:51:20 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Thu, 12 Feb 2026 19:51:20 -0500 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=fm3; t=1770943880; x=1771030280; bh=i7lXf880AQ c4HYZk8ud3xJ2Uk85TiMRz7odusuQepH0=; b=tyLyCPVHmw0/uEyHYVx6H8Y5g2 ZWHWdW5VjDtcJP+b0M0fvsnw+T+iPHDCpdguWD+uh5o21Wo3ctHt6ptN3hHsGwes DV/HvaIC80XXdQ0pbezYIMwfQHtZnWmKPzgthu6B+uB3JC2kqJ4/iJJRyinOWLck j1iuCBUx9Y3dSM2Fa3qznX0/RkyhBBpnixX8xQ6+qrsOMIArLd/pQ1gGKzslHMov 6w2neQRC83Teapopvoaa06lXt85tYculaxSBJDoK4+A588xoEOzY6BqjZw+p0Vpc /sXUX6/hnr+73aKXviS8Nd7YJaG+162xkZT8JZeT+njUEi+kBzMlHq03I5eA== 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=fm3; t= 1770943880; x=1771030280; bh=i7lXf880AQc4HYZk8ud3xJ2Uk85TiMRz7od usuQepH0=; b=DvtG4PiaRgfo+P9Y/S6y4kTwmMd9sXy67J0WgMjhQFO7zUpnL+P YN6/VdvelBfp67R4IDzD5+eRvosWRB7DZYw8i3fV2fKDm7KAtZN5xtiBQu/GLtd+ ESzasYgBt0o03TxBiIy9bzD8GlVNGWYVY48MLovVorhdEq0wY55RIGEGPnNW3zqI hAgJD/ABDJbdJKHA2gI74Co0D3w0DIm8fzollo8pHUX/V0oabpK5n1Fzye5y+7kw tQhjE3MGYLaX15YMlS0O8JkexB4kdxYl7AW67UMFSof4Y4DRxqV+sh8sPcCkq4kK 4V4v8/zLiCaNSiAfHkDftBks5KUG7Xejzkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtdeikeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgr rhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpedvffefvefhteevffegieetfefhtd dvffejvefhueetgeeludehteevudeitedtudenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgdpnh gspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepsggvrhht rhgrnhguughrohhuvhhothdrphhgsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgsh hqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Feb 2026 19:51:19 -0500 (EST) Date: Thu, 12 Feb 2026 19:51:18 -0500 From: Andres Freund To: Bertrand Drouvot Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Replace literal 0 values with the appropriate Invalid* constants Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2026-02-12 10:15:06 +0000, Bertrand Drouvot wrote: > There are some places where we are using literal 0 instead of the proper Invalid* > constant. > > I think it's better to use the proper constant instead: It improves code clarity > by making it explicit that these are invalid values rather than ambiguous zero > literals. I think we should reject these and other similar patches, they generate way more noise than they are improving the code. If you edit the code for other reasons and update the initialization in the course of that, ok, but these wholesale searches for initializing with 0 use up bandwidth that we could use for much more worthwhile things. Greetings, Andres Freund