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 1rL095-005X5e-Gp for pgsql-committers@arkaria.postgresql.org; Wed, 03 Jan 2024 12:14:51 +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 1rL094-00592S-1a for pgsql-committers@arkaria.postgresql.org; Wed, 03 Jan 2024 12:14:50 +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.94.2) (envelope-from ) id 1rL093-00592K-QZ for pgsql-committers@lists.postgresql.org; Wed, 03 Jan 2024 12:14:49 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rL091-00DWvM-8r for pgsql-committers@lists.postgresql.org; Wed, 03 Jan 2024 12:14:48 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8616B5C01A7; Wed, 3 Jan 2024 07:14:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 03 Jan 2024 07:14:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=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=fm1; t=1704284085; x=1704370485; bh=cD1SyHw1gRMLEuWua5jlY0zXG1v/8xQZW1v1yK+IsnA=; b= JQysrekVbdu3NKfQJadmJTHYNiN0wGdMb8rI18bg4Z5mRhNli6qQ9Dx+yALTH7B4 cGDpaVMHUVK7LTg6P0j5xZZP1K/8hpcfeUWXJ2SGhSjygCE+/DGoV09ql7kv1C7K hyzT/ne1A5vSFkrsYVejH9oREUdW3upjzX3ajQeXbwR0G9d/lx84u7M7aDEPVzQg RDToD6IWwcVujTXCPNw30IbnI7wvBf8K3WyXntbuGXDHI7ayHMiRd2aqwSKmwfAU R86Cdhghfl/rXhbgxoHvJBzLPv6EWfWzx6RLmRD/pRAPyS0ZBTpn+Ln0Fzj8x+qu E7vPaWIkoBTOLuN1YZLVQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1704284085; x= 1704370485; bh=cD1SyHw1gRMLEuWua5jlY0zXG1v/8xQZW1v1yK+IsnA=; b=W xHesyq4ckDo7g70kBVac1WF8NvSVNbNoYIyMvN4ecYsVx2vxkQoiJjkKoP6Ya9Bl 0T18HWamxiHdapYY6RYBlC4ahEaqpDqyCpmD2/kNSoStil0TWmdgail+/tWD5/MK txtRjb6QKqG0WyD98AYJZt3sLqJFB/J2VwDIFjhc/UFH3GiN/wyn9uH9BdyHoX5P s3y/AYioc+ptn8Rlj6eWhqoUSJB1X6LZ5QGCdcGQeI/NKLLibbpFeNTvoJLuylWo 4EBCnDqiDYRWz2npbwZJ54DfM1tM/h8vsvMA1C8j5BScoFHzq7zAGvKKn1KhOemH 9AxlftVhEX9WgsjZdmstw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeghedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqe enucggtffrrghtthgvrhhnpedugfejffefleefvdegvdejvdeiheevgffhjefgudfhvedv jeevfeehteelgfevfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Jan 2024 07:14:44 -0500 (EST) Message-ID: <14c9cb82-46e5-4be0-9233-36d09089dd11@eisentraut.org> Date: Wed, 3 Jan 2024 13:14:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Follow-up fixes for "Make all Perl warnings fatal" Content-Language: en-US To: Andrew Dunstan , pgsql-committers@lists.postgresql.org References: From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 02.01.24 15:49, Andrew Dunstan wrote: > > On 2023-12-29 Fr 17:56, Peter Eisentraut wrote: >> Follow-up fixes for "Make all Perl warnings fatal" >> >> Mostly, we need to check whether $ENV{PG_TEST_EXTRA} is set before >> doing regular expression matches against it. > > > This reads a bit oddly to me. > > -elsif ($ENV{PG_TEST_EXTRA} !~ /\bkerberos\b/) > +elsif (!$ENV{PG_TEST_EXTRA} || $ENV{PG_TEST_EXTRA} !~ /\bkerberos\b/) > > I think I would have changed it like this > >   elsif (($ENV{PG_TEST_EXTRA" || "") !~ /\bkerberos\b/) > > which is an idiom we've used elsewhere. I would probably have written it that way, too, but there was already existing code dealing specifically with PG_TEST_EXTRA that was written the other way, so I made it match that.