Re: Proper Unicode support - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proper Unicode support
Date
Msg-id 17696.1060729059@sss.pgh.pa.us
Whole thread Raw
In response to Re: Proper Unicode support  (Hannu Krosing <hannu@tm.ee>)
List pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes:
> A question to the core - are there any plans to rectify this for less
> fortunate languages/charsets?

I'm not planning to fix it personally, if that's what you mean.  I agree
somebody should do something about it.  Possibly the C99 <wctype.h>
routines can be used (where available) in place of <ctype.h>.

> Will the ASCII-speaking core tolerate the potential loss of performance
> from locale-aware upper/lower ?

Depends how big a loss we're talking about, doesn't it?  Still, we
tolerated multibyte-always ... which I'd think would be a bigger hit.
BTW, I'd be at least as concerned about maintaining code readability as
about performance.

> Will this be considered a feature or a bugfix (i.e. should we attempt to
> fix it for 7.4) ?

I think it is probably too large a change to consider for 7.4 at this
point ... especially since it's been broken since day one and no one
has shown any particular urgency about fixing it before.

It's not too soon to start on work for 7.5 though.  Keep in mind that
Bruce is still muttering about a short 7.5 cycle, if the Win32 port work
comes through.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: TODO items
Next
From: Gavin Sherry
Date:
Subject: Re: Parsing speed (was Re: pgstats_initstats() cost)