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 1rjnlB-007x5q-Nq for pgsql-committers@arkaria.postgresql.org; Mon, 11 Mar 2024 22:04:42 +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 1rjnlA-001h9N-2y for pgsql-committers@arkaria.postgresql.org; Mon, 11 Mar 2024 22:04:40 +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 1rjnl9-001h50-Re for pgsql-committers@lists.postgresql.org; Mon, 11 Mar 2024 22:04:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rjnl5-00418E-Vn for pgsql-committers@lists.postgresql.org; Mon, 11 Mar 2024 22:04:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 42BM4ZTO1560270; Mon, 11 Mar 2024 18:04:35 -0400 From: Tom Lane To: Jeff Davis cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Catalog changes preparing for builtin collation provider. In-reply-to: References: <8899c7c62b86370076110920686fd24863b69a01.camel@j-davis.com> <1222780.1710047108@sss.pgh.pa.us> <0ef325fa06e7a1605c4e119c4ecb637c67e5fb4e.camel@j-davis.com> <1547879.1710188139@sss.pgh.pa.us> <1548559.1710188512@sss.pgh.pa.us> Comments: In-reply-to Jeff Davis message dated "Mon, 11 Mar 2024 14:17:04 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1560268.1710194675.1@sss.pgh.pa.us> Date: Mon, 11 Mar 2024 18:04:35 -0400 Message-ID: <1560269.1710194675@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > I am still confused on a couple of points here, such as: why does my > example work fine on newer versions of perl? I'm not sure about that either. The discussions of this that I found on-line say that it's not something the Perl gurus want to get rid of, but it sure seems like they must have tightened the behavior to some extent. Another question is why it didn't fail on all the animals with similar Perl vintage. My guess about that is that there's some configuration difference causing the Perl script to take slightly different code paths, but it's just a guess. > But I agree: if the empty pattern is magical, we should get rid of it, > even if we don't understand the exact conditions under which it behaves > magically. Yeah. I was dismayed to find that there's no perlcritic check for this, because it sure seems like the kind of thing you don't want to invoke by accident. regards, tom lane