Re: [HACKERS] Getting server crash on Windows when using ICUcollation - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Getting server crash on Windows when using ICUcollation
Date
Msg-id 6f2303e9-ab52-0224-3262-1303e811b9a6@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] Getting server crash on Windows when using ICUcollation  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: [HACKERS] Getting server crash on Windows when using ICU collation
Re: [HACKERS] Getting server crash on Windows when using ICU collation
List pgsql-hackers
On 6/16/17 10:12, Peter Eisentraut wrote:
> On 6/16/17 06:30, Amit Kapila wrote:
>> How will this compare UTF-8 strings in UTF-8 encoding?  It seems to me
>> that ideally, it should use ucol_strcollUTF8 to compare the same,
>> however, with patch, it will always ucol_strcoll as we never define
>> HAVE_UCOL_STRCOLLUTF8 flag on Windows.
> 
> We have a configure check for that, but I don't know how to replicate
> that on Windows.
> 
> If ucol_strcollUTF8 is not available, we have code to convert to UTF-16.
>  This is the same code that is used for non-Windows.

After thinking about this some more, I have committed a change to define
HAVE_UCOL_STRCOLLUTF8 on Windows unconditionally.  Until someone figures
out a different way, I think it's better that users of newish versions
of ICU get the newer/better behavior, and users of older versions can
file a bug.  The alternative is that we forget about this and we keep
using the old code path indefinitely.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] [BUGS] BUG #14699: Statement trigger and logicalreplication
Next
From: Thomas Munro
Date:
Subject: Re: [HACKERS] [BUGS] BUG #14699: Statement trigger and logical replication