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 1rjmsx-007qis-9X for pgsql-committers@arkaria.postgresql.org; Mon, 11 Mar 2024 21:08:39 +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 1rjmsv-0018FC-17 for pgsql-committers@arkaria.postgresql.org; Mon, 11 Mar 2024 21:08:37 +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.94.2) (envelope-from ) id 1rjmsu-0018F3-QG for pgsql-committers@lists.postgresql.org; Mon, 11 Mar 2024 21:08:37 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rjmss-0040Ba-A5 for pgsql-committers@lists.postgresql.org; Mon, 11 Mar 2024 21:08:36 +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 42BL8WtB1553992; Mon, 11 Mar 2024 17:08:32 -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: <0ef325fa06e7a1605c4e119c4ecb637c67e5fb4e.camel@j-davis.com> References: <8899c7c62b86370076110920686fd24863b69a01.camel@j-davis.com> <1222780.1710047108@sss.pgh.pa.us> <0ef325fa06e7a1605c4e119c4ecb637c67e5fb4e.camel@j-davis.com> Comments: In-reply-to Jeff Davis message dated "Mon, 11 Mar 2024 12:26:55 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1553990.1710191312.1@sss.pgh.pa.us> Date: Mon, 11 Mar 2024 17:08:32 -0400 Message-ID: <1553991.1710191312@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis writes: > My commit adds a line using the s/// operator. Oh, independently of the empty-pattern problem: what you added is +# Numeric major version of old cluster, ignoring "devel" suffix. +# Needed for testing upgrades from development version to itself. +my $old_major_version = int($oldnode->pg_version =~ s/devel//rg); Surely this will break the moment we enter beta. Rather than trying to fix that directly, what we should be doing is realizing that you've reinvented -- badly -- the facilities provided by the PostgreSQL::Version package. The code you changed, if ($oldnode->pg_version >= 15 && $ENV{with_icu} eq 'yes') was perfectly correct as it stood, because pg_version is a PostgreSQL::Version object. Why did you feel a need to editorialize on that? regards, tom lane