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 1pptQM-0004oM-II for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 16:15:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pptQL-0005Hh-Dh for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 16:15:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pptQL-0005HX-0S for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 16:15:49 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pptQE-004GiF-Qr for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 16:15:48 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1a920d484bdso21039165ad.1 for ; Fri, 21 Apr 2023 09:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20221208.gappssmtp.com; s=20221208; t=1682093740; x=1684685740; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=8iIaH3RpWdX3p4NUBOxZsbKfu6bY/hJIwfuOnQp3zF0=; b=R6AVLt/fLAJfMrR/DwdPadoWlKsozIACZ1DAf44RU7J6o677k4tOY2ijmXnPsey6HM SemQP1Y08XWlPSHljj2jsIReRii9q1uLPuuEi7g0wjeDP49I1O6YMKfW7CXiS4sKSGcA UrpiicF7LBP1GjH275lOMczhPVy7B3VUyM65kt9gvuoSfaYIodBpiStOQocLAVAS5y+y Qq0Rxa6s1GOSeNBUVOEbiu95VcgvlJD+Bs/gFLPLgvjg8u9X3a4sVraYxQAz8+VZaW80 VJoB3I360FwzLkTR7gGdJmViB33xT97PojE5DPfcpcQSNySImJjADghzATVn793hpbYE 7KAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682093740; x=1684685740; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=8iIaH3RpWdX3p4NUBOxZsbKfu6bY/hJIwfuOnQp3zF0=; b=L1iu2sWyr7nuhS4S09wvwvMuGh4+xdFdg5+aqXq5l9k8aPicifq03OIA575pyLYX4V qe9zNAUcZ/QFmTt3fOzp8101R9sX6lS6b1dMQJP4//A/TlvhrrDbXZQU6rAhqNlA98yk Y651qCIyHS1yuNoC97whi1ALKtPPlAsTVsn8CQvwy931fS8nbtq2vLoTVZgf2ndeOgtB mghcBVWuaNFs/N+3yl6UQACBWspBjyNsJhpoUx5B23Ge6nt16KoFJ4jT2QSxME5/sF32 0FwBkB1Z6nDO3a9vTGFdFm6UOKszUjUAa6X4nsigKzzfdHoP2ayy+6Jmb/0FaMN2AC+4 mkNg== X-Gm-Message-State: AAQBX9ctsbtZ4cYAyWW5p3iHSo10IuY0o0TJd/9QFNGT9j2IHehaifci 2hOUl8p6mFiRfqgLPCeJlQPQmw== X-Google-Smtp-Source: AKy350aVQIlM80f8PW/xbQF36Z3aCDoNwtm9xGNL2kUNuEiQu1590FVsKcsfVTyjT6BpVm0TgoKemw== X-Received: by 2002:a17:903:24c:b0:1a6:b1a2:5f21 with SMTP id j12-20020a170903024c00b001a6b1a25f21mr7074180plh.8.1682093740535; Fri, 21 Apr 2023 09:15:40 -0700 (PDT) Received: from jeff-laptop.lan (c-73-170-46-202.hsd1.ca.comcast.net. [73.170.46.202]) by smtp.gmail.com with ESMTPSA id jn20-20020a170903051400b001a6566045ccsm2932802plb.192.2023.04.21.09.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 09:15:40 -0700 (PDT) Message-ID: <765286f264b138afdb11970bbaf57e7fdc4248eb.camel@j-davis.com> Subject: Re: Order changes in PG16 since ICU introduction From: Jeff Davis To: Regina Obe , pgsql-hackers@lists.postgresql.org Date: Fri, 21 Apr 2023 09:15:39 -0700 In-Reply-To: <000b01d97465$c34bbd60$49e33820$@pcorp.us> References: <000b01d97465$c34bbd60$49e33820$@pcorp.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 Fri, 2023-04-21 at 11:27 -0400, Regina Obe wrote: > A couple of days ago, our PostGIS PG16 bots started failing with > order > changes in text. > We have our tests set to locale=3Dc Are you sure it's still using the C locale? The results seem to be explainable if the locale switched from "C" to "en-US-x-icu": The results of the following are the same in v15 and v16: select 'RM(25)/nodes|+|21|1' collate "C" < 'RM(25)/nodes|-|21|' collate "C"; -- true select 'RM(25)/nodes|+|21|1' collate "en-US-x-icu" < 'RM(25)/nodes|- |21|' collate "en-US-x-icu"; -- false I suspect when the initdb and configure defaults changed from libc to ICU, then your locale changed. Regards, Jeff Davis