From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Hari Sankar A <hsshanthamhari@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Problem with PostgreSQL string sorting
Date: Wed, 15 Feb 2017 12:05:13 -0500
Message-ID: <16285.1487178313@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-Wzk5NzT-Tsn+O+XLprGvPYD+Uk61kWeU1yVJZb97pJNQTg@mail.gmail.com>
References: <CAL1h+Q-6bmpGo2w+KvaT7ib4oE4NmoJvvxWp5jH9CaZT+M6cKw@mail.gmail.com>
<CAH2-Wzk5NzT-Tsn+O+XLprGvPYD+Uk61kWeU1yVJZb97pJNQTg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Peter Geoghegan <pg@bowt.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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pg@bowt.ie, hsshanthamhari@gmail.com
Subject: Re: Problem with PostgreSQL string sorting
In-Reply-To: <16285.1487178313@sss.pgh.pa.us>
References: <CAL1h+Q-6bmpGo2w+KvaT7ib4oE4NmoJvvxWp5jH9CaZT+M6cKw@mail.gmail.com> <CAH2-Wzk5NzT-Tsn+O+XLprGvPYD+Uk61kWeU1yVJZb97pJNQTg@mail.gmail.com> <16285.1487178313@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox