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 1mqdNS-0002ft-0u for pgsql-general@arkaria.postgresql.org; Fri, 26 Nov 2021 15:43:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mqdNQ-0004bS-J1 for pgsql-general@arkaria.postgresql.org; Fri, 26 Nov 2021 15:43:04 +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 1mqdNQ-0004bJ-8W for pgsql-general@lists.postgresql.org; Fri, 26 Nov 2021 15:43:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqdNO-0005fr-4B for pgsql-general@lists.postgresql.org; Fri, 26 Nov 2021 15:43:03 +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 1AQFgxTB418563; Fri, 26 Nov 2021 10:43:00 -0500 From: Tom Lane To: Jakub Jedelsky cc: pgsql-general@lists.postgresql.org Subject: Re: case insensitive collation of Greek's sigma In-reply-to: References: Comments: In-reply-to Jakub Jedelsky message dated "Fri, 26 Nov 2021 08:37:47 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <418561.1637941379.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 26 Nov 2021 10:42:59 -0500 Message-ID: <418562.1637941379@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jakub Jedelsky writes: > during our tests of Postgres with ICU we found an issue with ILIKE of up= per > and lowercase sigma (=CE=A3). The letter has two lowercase variants =CF=83= and =CF=82 (at > the end of a word). I'm working with en_US and en-US-x-icu collations an= d > results are a bit unexpected - they are inverted: Not sure why you would expect en_US collation to give appropriate results for Greek? I think you'd need el_GR. Be that as it may, Postgres doesn't define anything about this --- we just rely on the collations supplied by the respective system libraries (libc or ICU). You'd need to file bugs against those libraries if you think their behavior should change. regards, tom lane