Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pbo26-00056K-Cf for pgsql-committers@arkaria.postgresql.org; Mon, 13 Mar 2023 19:40:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pbo25-0003KV-Ai for pgsql-committers@arkaria.postgresql.org; Mon, 13 Mar 2023 19:40:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pbo24-0003KM-UU for pgsql-committers@lists.postgresql.org; Mon, 13 Mar 2023 19:40:33 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pbo22-0008Eh-GX for pgsql-committers@lists.postgresql.org; Mon, 13 Mar 2023 19:40:31 +0000 Received: by mail-pl1-x635.google.com with SMTP id k2so6310035pll.8 for ; Mon, 13 Mar 2023 12:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; t=1678736429; 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=bbOoU2qpd7yQHgB37ph2oW/fAQpJhAuuod9Hs5UqE6s=; b=bORoV8981OKZxrzFZUnGlfq5u6G6UNKn/EhYj4oyCv73k8vMsEqZuiYcwq57RZ321x nOmrnhy0AF8vlMitqG//t/g4oWHTLvzTt0ChbQJQFpVP8K6EHJwJC9r9+7iAtAWb3liS z9DiH7Qeuv0t9OuYCnrdfHm3QmwAwrTbq+tb7jyEKkB/eWnVVqmVilkkMA/ipKj3KIxZ UkZQWgyMtUtyVJe9JaHrCMnQF1fyt8mg+0WaHMeS13CvsLSEoM2xhEwsUARnkqzw/wKD pbhC4m7YwjwOXxDjXlcAv8Nv7zmabu3BcJDY2zG62FQ4206rRZ7OlCDn+oKuA1UQxjIQ xmcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678736429; 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=bbOoU2qpd7yQHgB37ph2oW/fAQpJhAuuod9Hs5UqE6s=; b=doHUIPrBqursMPsEx2MMnf9HJjuCrOPYzRFgo4To9AIpbYSuZ51DCnvoKL/rI1+9Al itLvkxpdtnrs8jR63CWXxrosgabocOJFEGtkpmdeVWQDsV9tE5NzKbENVW298LA0CHyC NAHRE8x+5Bv/XfxptGwwqPqZgqFffAZD1X83TgLkrkEfXyYER7eXkQVY3pL2rbv/NyvQ H9ZZk+HCBYa2bSreXb0w+Qs8d2wWLYys9cUHcqRZd4Da7+SQzlDm09i/uAcmZByWCzLf Gz39WfGRM932hgezmkLipyH+2WtH5TykzvrnSKo8K8pwrKqE4pQ2w7aKBxPwednJL/4S wCWw== X-Gm-Message-State: AO0yUKXWWQd5ZhbAB1p4J2J5RdGX6uUNxvh2BnzI5Pvpb83Twwe+eV+C 8P7X4RJvNoIoEN4F6ZW3cs5TpdhlssX4MmdzpPA= X-Google-Smtp-Source: AK7set9ViVEj5uf1nZ1TI2vPopExYPC2Yt0AqDepg3LX5A0b1OZ9VIIhctYxUYJHpsgWmnBjCut1KA== X-Received: by 2002:a17:903:32cf:b0:19d:1d32:fbe with SMTP id i15-20020a17090332cf00b0019d1d320fbemr42215438plr.20.1678736429470; Mon, 13 Mar 2023 12:40:29 -0700 (PDT) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id ka8-20020a170903334800b0019c61616f82sm215941plb.230.2023.03.13.12.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 12:40:29 -0700 (PDT) Message-ID: <0c6fa66f2753217d2a40480a96bd2ccf023536a1.camel@j-davis.com> Subject: Re: pgsql: Add standard collation UNICODE From: Jeff Davis To: Tom Lane Cc: Andrew Dunstan , Peter Eisentraut , pgsql-committers@lists.postgresql.org Date: Mon, 13 Mar 2023 12:40:28 -0700 In-Reply-To: <1253026.1678567661@sss.pgh.pa.us> References: <582e43d0a814e09c62ea662dd851f43bfc137a16.camel@j-davis.com> <231acf388c37597a9f0f8a3af9a899df99c28e1d.camel@j-davis.com> <1253026.1678567661@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2023-03-11 at 15:47 -0500, Tom Lane wrote: > In general, I see no good reason for our regression tests to be > making > assumptions about exactly how ICU's root locale behaves, so I'd > suggest > just lobotomizing this test case so it doesn't depend on upper/lower > sort order. [ Looks like Peter already found the answer, but I had some additional commentary so I'll send this anyway. ] Mystery solved: "und" was not a valid spelling of "root" until version 55. So it fell back to the default locale, which is sensitive to the environment. With this in mind, I think we should take the opposite lesson and keep this test as-is. We don't have to promise the behavior in the docs, but it did catch a real issue. In fact, it caught a dangerous issue, because a change to lc_messages could cause a corrupt index. I'd like to see if there's a way to reliably detect that a fallback to the environment-sensitive default locale has happened, and throw an error. I don't think that happens in versions 55 and later, but it would be nice to have a test because earlier versions of ICU seem dangerous to me. Regards, Jeff Davis