Re: ICU locales and text/char(n) SortSupport on Windows
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-09-24T12:04:46Z
Lists: pgsql-hackers
On 9/22/17 12:25, Peter Geoghegan wrote: > On Fri, Sep 22, 2017 at 7:25 AM, Peter Eisentraut > <peter.eisentraut@2ndquadrant.com> wrote: >> I agree. The attached patch should do it. > > I see one small issue here: You'll now need to set ssup->comparator > back to NULL before you return early in the Windows' libc case. That > way, a shim comparator (that goes through bttextcmp(), in the case of > text) will be installed within FinishSortSupportFunction(). Other than > that, looks good to me. committed accordingly -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Assume wcstombs(), towlower(), and sibling functions are always present.
- 85feb77aa09c 11.0 landed