Re: insensitive collations
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Peter Geoghegan <pg@bowt.ie>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-03-11T20:36:39Z
Lists: pgsql-hackers
Attachments
- 0001-Add-tests-for-ICU-collation-customization.patch (text/plain)
On 2019-03-08 11:09, Peter Eisentraut wrote: > On 2019-03-07 20:04, Daniel Verite wrote: >> With previous versions, we'd need to call ucol_setAttribute(), >> with the attributes and values defined here: >> http://icu-project.org/apiref/icu4c/ucol_8h.html >> for instance to get colStrength=secondary: >> ucol_setAttribute(coll, UCOL_STRENGTH , UCOL_SECONDARY, &status); >> which I've just checked gives the expected result with ICU-4.2. > > I see. I'm thinking about adding some ad hoc code to > pg_newlocale_from_collation() to parse these keywords ourselves, so we > can provide the same interface for old ICU versions. I'll send a > separate patch for that. Patches here. This will allow all the existing collation customization options as well as the ones being proposed in this thread to work in older ICU versions. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Collations with nondeterministic comparison
- 5e1963fb764e 12.0 landed
-
Add support for collation attributes on older ICU versions
- b8f9a2a69a27 12.0 landed
-
Make type "name" collation-aware.
- 586b98fdf1aa 12.0 cited
-
Make collation-aware system catalog columns use "C" collation.
- 6b0faf723647 12.0 cited
-
Adjust string comparison so that only bitwise-equal strings are considered
- 656beff59033 8.2.0 cited