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 1ppuKz-0000K5-38 for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:14:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppuKx-0003lY-VC for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Apr 2023 17:14:19 +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 1ppuKx-0003lP-Km for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:14:19 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppuKu-004HBE-SH for pgsql-hackers@lists.postgresql.org; Fri, 21 Apr 2023 17:14:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id AAF435821B3; Fri, 21 Apr 2023 13:14:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 21 Apr 2023 13:14:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1682097255; x=1682104455; bh=qTFjNSzDXBycsp+GoHnvJCd+w3fXgiZNUUa 62IFoZUA=; b=Q1b0anzz6n/n96B9WngHitse02zkUQnC3t33Kkzh6TeDaIK7vJU X+PFP/+jJTYhMeR7FY7Ds0AzWn6P+MbjXcWvtT+i38u53YK6zq/zPFDj0sXoTiOM lzqeghtY6BoNacSXmrvR+KpGE5UjSZ9lMfXmJ3HDB+hseF0r5ElIcDF3SLNAPQEF qW49/SGFhJW2Hyo6boGgDs0UOGvcyQrgHowE+PqFKdU61GSgDNRNm/4eRf45MFs4 8qPbRD/hLLlTWlZ6HMOaG3ywUH4A3Pa/k3UM4r29CSC4SCna+eRdNTvJlnTNUmFE N83XYjWzycr8v9MV/pZlRZ7tSpPIx87oQyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedtgedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgse htjeertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvght vghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtf frrghtthgvrhhnpeekueevteevjedtudeugeegfeehfeektdegteeghedtgfevgfekieet jeetueehheenucffohhmrghinhepohhsghgvohdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Apr 2023 13:14:14 -0400 (EDT) Message-ID: <533d93c5-f604-8e5f-4a48-975c08c53d59@enterprisedb.com> Date: Fri, 21 Apr 2023 19:14:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Order changes in PG16 since ICU introduction Content-Language: en-US To: Sandro Santilli , Tom Lane Cc: Regina Obe , pgsql-hackers@lists.postgresql.org, Jeff Davis References: <000b01d97465$c34bbd60$49e33820$@pcorp.us> <3353947.1682092131@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 21.04.23 19:09, Sandro Santilli wrote: > On Fri, Apr 21, 2023 at 11:48:51AM -0400, Tom Lane wrote: >> "Regina Obe" writes: >> >>> https://trac.osgeo.org/postgis/ticket/5375 >> >> If they actually are using locale C, I would say this is a bug. >> That should designate memcmp sorting and nothing else. > > Sounds like a bug to me. This is happening with a PostgreSQL cluster > created and served by a build of commit c04c6c5d6f : > > =# select version(); > PostgreSQL 16devel on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit > =# show lc_collate; > C > =# select '+' < '-'; > f If the database is created with locale provider ICU, then lc_collate does not apply here, so the result might be correct (depending on what locale you have set). > =# select '+' < '-' collate "C"; > t