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 1rjlId-007g4P-T9 for pgsql-committers@arkaria.postgresql.org; Mon, 11 Mar 2024 19:27:04 +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 1rjlIb-000ABU-VX for pgsql-committers@arkaria.postgresql.org; Mon, 11 Mar 2024 19:27:02 +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 1rjlIb-000ABM-KJ for pgsql-committers@lists.postgresql.org; Mon, 11 Mar 2024 19:27:02 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rjlIY-003zYQ-WD for pgsql-committers@lists.postgresql.org; Mon, 11 Mar 2024 19:27:01 +0000 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6e66601f082so2921898b3a.0 for ; Mon, 11 Mar 2024 12:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1710185217; x=1710790017; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=sy3UM6KYybMN68V74KixeQfNuLnoE/TVQ7HHYairCpg=; b=kBGKJ0/cU7mcvBQDHdnwZSwID8DV6pCXSLH7h1It2MvrR44fcHmS4Q/CxdM6QOlwdu hTgzQnfjKAyZFlEhFvvUTnJLaw/nZyR2Z8faSfBvfZZb+w+mO1aTaVzHXtewfLa0ZpfK da6fnKJ0EbKuQDqlQrL5jB6lFYEM9PjwWJr0U/v9ZZEvef0O7P827trxCEWgEErV1AY4 oRKK4oo2DP8JBE2k5NDeuPr2ZoBHgH+HARINMv9Mk8htXekGwK7TlftcrId+nTKorXuN Zq/t2PvGJ7ZzB2YBpirYb8WbBGuBkxfy5Oq6P641Pz+X6m5X4HPaJ6QBA6fk5/LiL4PA QrcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710185217; x=1710790017; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=sy3UM6KYybMN68V74KixeQfNuLnoE/TVQ7HHYairCpg=; b=wMM4z34KUAzsXOBOh1gTOyPk0bzqcWUqzivdCxESOTBiKa/5tKGUddyJAMCtvd7Ol3 n8Lcyt7/ByuNn+2/c+BDTZt7UaSeL/oLZ+y65L3p3EkjwdYclJKnCBPH1tyjkWnALLqQ +in7714qURl4HZoOeebiUTV/uM/HrfdgfL9FQwpEbD9pLB1FeDKQzE6ktG3IhZdxXajf FFljeosn8vKDG/JxoCZguNlneJk7cvL/IBCrK9ZI1ZvDL9KuiIUMugCDpdbBRWlXOm7X R3/v4oGT2psmqLhk1LOTLz6c+wkButmHJ7E1jbel1kbi/v8Vc/8N3GfghJrMCcUma3R/ 3ujw== X-Forwarded-Encrypted: i=1; AJvYcCU71rJXpD6K2TaAhSBWD+c/MUv5Ww/BY2mIBPTN7WtLtdb5DP08PLIJoOZwZfmQId1FAHVY5QDXLEVM7rzN/RKqZD/z1m8199Je4J8yAiBaTmuz/svR X-Gm-Message-State: AOJu0YzPJTTqAeQHnWAeeJXF1mGVqjjrSxdk9cWQ+tWAAVtLdEgz2fDh ehHtMlqbXnkqCz1eMtPFF/u+AM2ITpBo0L9Mqol/ACxs37iv58sIEgJFVujKdA== X-Google-Smtp-Source: AGHT+IGHtSy7XzLul7V4iO0cZrZ6qqVmPVKdweAoeiWntkrZkS6F30xLt4ThwxdtGz4JHZ62chxHpg== X-Received: by 2002:a05:6a20:94c8:b0:1a1:1eb7:83e1 with SMTP id ht8-20020a056a2094c800b001a11eb783e1mr5402618pzb.46.1710185216752; Mon, 11 Mar 2024 12:26:56 -0700 (PDT) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id m8-20020a62f208000000b006e68005b637sm3956671pfh.22.2024.03.11.12.26.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 12:26:56 -0700 (PDT) Message-ID: <0ef325fa06e7a1605c4e119c4ecb637c67e5fb4e.camel@j-davis.com> Subject: Re: pgsql: Catalog changes preparing for builtin collation provider. From: Jeff Davis To: Tom Lane Cc: Jeff Davis , pgsql-committers@lists.postgresql.org Date: Mon, 11 Mar 2024 12:26:55 -0700 In-Reply-To: <1222780.1710047108@sss.pgh.pa.us> References: <8899c7c62b86370076110920686fd24863b69a01.camel@j-davis.com> <1222780.1710047108@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 2024-03-10 at 00:05 -0500, Tom Lane wrote: > Yeah.=C2=A0 It looks to me like it's somehow Perl-version-related. I found it. On perl 5.16.3 on a failing instance: use strict; die '"" does not match qr// before substitution' unless '' =3D~ qr//; my $foo =3D ('|a|' =3D~ s/a//r); die '"" does not match qr// after substitution' unless '' =3D~ qr//; print "$foo\n"; dies with: "" does not match qr// after substitution at - line 4. My commit adds a line using the s/// operator. That's so bizarre that I have to guess that it's a perl bug. I poked around in the perl docs to see if I'm missing something, but I didn't find anything indicating that a substitution would have crazy side effects. Please correct me if I'm wrong; I'm far from a perl expert. Assuming that it is a perl bug, there are two potential workarounds: 1. Use qr/^$/ for the test rather than qr//. 2. Don't use s/// anywhere. Find another way to transform devel versions into numbers. Either one has the potential to leave traps for later. New tests might either rely on s/// or expect qr// to work. I am inclined toward #1, because if we use qr/^$/, other tests are likely to copy it and they will be safe as well. Though I'm still not sure what's going on with longfin. Thoughts? Regards, Jeff Davis