From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14885: mistake in sorting win1251 chars
Date: Thu, 2 Nov 2017 14:48:35 +0100
Message-ID: <dde3e145-536e-d185-0628-359f4ade8d49@2ndquadrant.com> (raw)
In-Reply-To: <20171102095719.17188.59150@wrigleys.postgresql.org>
References: <20171102095719.17188.59150@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 11/02/2017 10:57 AM, k.daskalov.911@gmail.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 14885
> Logged by: Kalin Daskalov
> Email address: k.daskalov.911@gmail.com
> PostgreSQL version: 9.4.4
> Operating system: windows 7 64 bit
> Description:
>
> I'm using ORDER BY <character varying field> containing win-1251 symbols.
> No matter whether the encoding is WIN1251 or UTF8.
> I try it on different versions of PostgreSQL - the result is the same.
> There is a mistake in sorted values for symbols "и" (и) and "й"
> (й) - capital letters too.
> Here is a small example:
> "АЙГЕР"
> "АИКО"
> "АЙКОН"
>
Encoding only defines how different characters are encoded, it has
nothing to do with ordering - that's what collations are for. What
lc_collate value are you using?
See https://www.postgresql.org/docs/9.4/static/collation.html
cheers
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
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: tomas.vondra@2ndquadrant.com
Subject: Re: BUG #14885: mistake in sorting win1251 chars
In-Reply-To: <dde3e145-536e-d185-0628-359f4ade8d49@2ndquadrant.com>
References: <20171102095719.17188.59150@wrigleys.postgresql.org> <dde3e145-536e-d185-0628-359f4ade8d49@2ndquadrant.com>
* 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