Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iQ4nH-0003fd-IW for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Oct 2019 07:22:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iQ4nE-0003OE-In for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Oct 2019 07:22:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iQ4nE-0003O6-A7 for pgsql-hackers@lists.postgresql.org; Thu, 31 Oct 2019 07:22:52 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iQ4nB-0006vS-0N for pgsql-hackers@postgresql.org; Thu, 31 Oct 2019 07:22:51 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3728021951; Thu, 31 Oct 2019 03:22:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 31 Oct 2019 03:22:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=pjy8a8Z86jTliuSt595GO/icEATr9edMMNOIO6RYi F0=; b=nJc4tvTGizzlUBu90mba9v7j7oi4wTBuqobyD5FVfZObrsfjUjau84Gsu ch5JFkuEzywkWLT2ugFuudt/eVPiPhutbWdud78pi2/AeSF6nWPutja5NWZ277A5 xsGCpy2Ha+AIKO45N+7pQXqrEgQiu2hPY1SSGiB+tauW6xKHCYsIO/qUNazqUuqR 9D3t5hPtunLOjgP1piqm6JrbqP9srX3Sx/jHf8/JpmiuDd+lI15j1Ebq9Bvgysa6 uFzxVJvROCkg56AvpZHxHVh7q5YAkUrZ4Hu4Nq3bsZPaYF/IlQAnyTNzbnZVKpRW uw3Ek+6APzluBUi5FenLDLL7yd7lw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtgedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhfhokffffgggjggtgfesthekredttdefleenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnh guqhhurggurhgrnhhtrdgtohhmqeenucffohhmrghinhepvdhnughquhgrughrrghnthdr tghomhenucfkphepleefrddvgedvrddugeejrdejleenucfrrghrrghmpehmrghilhhfrh homhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from april.pezone.net (p5df2934f.dip0.t-ipconnect.de [93.242.147.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 331DA306005B; Thu, 31 Oct 2019 03:22:45 -0400 (EDT) Subject: Re: ICU for global collation To: Daniel Verite References: <5d807706-60a2-4e56-bc59-eef9e7deb138@manitou-mail.org> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <23ddce07-94a0-581a-eadc-16323e5d261a@2ndquadrant.com> Date: Thu, 31 Oct 2019 08:22:44 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <5d807706-60a2-4e56-bc59-eef9e7deb138@manitou-mail.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-09-17 15:08, Daniel Verite wrote: > When trying databases defined with ICU locales, I see that backends > that serve such databases seem to have their LC_CTYPE inherited from > the environment (as opposed to a per-database fixed value). > fr-utf8=# select to_tsvector('été'); > ERROR: invalid multibyte character for locale > HINT: The server's LC_CTYPE locale is probably incompatible with the > database encoding. I looked into this problem. The way to address this would be adding proper collation support to the text search subsystem. See the TODO markers in src/backend/tsearch/ts_locale.c for starting points. These APIs spread out to a lot of places, so it will take some time to finish. In the meantime, I'm pausing this thread and will set the CF entry as RwF. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services