Re: ICU locales and text/char(n) SortSupport on Windows
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-09-21T06:05:24Z
Lists: pgsql-hackers
On Sat, Sep 16, 2017 at 03:33:53PM -0700, Peter Geoghegan wrote: > In summary, we're currently attaching the use of SortSupport to the > wrong thing. We're treating this UTF-16 business as something that > implies a broad OS/platform restriction, when in fact it should be > treated as implying a restriction for one particular collation > provider only (a collation provider that happens to be built into > Windows, but isn't really special to us). > > Attached patch shows what I'm getting at. This is untested, since I > don't use Windows. Proceed with caution. This is currently a v10 open item, but I think it doesn't qualify for that treatment. It's merely an opportunity for optimization, albeit an attractively-simple one.
Commits
-
Assume wcstombs(), towlower(), and sibling functions are always present.
- 85feb77aa09c 11.0 landed