From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Geoghegan <pg(at)bowt(dot)ie> |
Cc: | Hari Sankar A <hsshanthamhari(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Problem with PostgreSQL string sorting |
Date: | 2017-02-15 17:05:13 |
Message-ID: | 16285.1487178313@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Peter Geoghegan <pg(at)bowt(dot)ie> writes:
> The behavior of each collation comes from the operating system's own
> libc, except for the C collation, which is based on the ordering
> implied by strcmp() comparisons. Generally, most implementations have
> the behavior you describe, in that they assign least weight of all to
> caseness and whitespace, and somewhat more weight to punctuation. I
> don't think that there is much that can be done about it in practice,
> though in principal there could be a collation that has all the
> properties you want.
I believe most versions of libc use declarative specifications of locale
properties, so if you wanted to spend some time learning the language in
which those are written, you could make and install a locale that acts
like you want. It's possible there's one out there already, because
a lot of people seem to want that.
In any case, this is not a bug, this is a feature request; and it's not
even for a Postgres feature, it's for a libc feature.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2017-02-15 17:14:22 | Re: Problem with PostgreSQL string sorting |
Previous Message | Peter Geoghegan | 2017-02-15 16:54:56 | Re: Problem with PostgreSQL string sorting |