Skip site navigation (1) Skip section navigation (2)

Re: BUG #1972: index error with space character

From: Richard Huxton <dev(at)archonet(dot)com>
To: Eduardo Soares <edurbs(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1972: index error with space character
Date: 2005-10-18 13:15:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Eduardo Soares wrote:
> Operating system:   Linux Fedora 4
> Description:        index error with space character
> Details: 
> In above example the "AZTES Z" should be after the "AZTESA". It happens with
> any encoding type. The DB not see the space character. The index shoulb see
> the space and put "AZTES Z" together with "AZTES". In above list the
> "AZTESA" should be the first.

Sorting order is determined by your locale, and is different from your 
encoding. For example, en_GB ignores spaces but C doesn't:

$ LC_COLLATE=en_GB.UTF-8 sort unsorted.txt
aa a
aa b

$ LC_COLLATE=C sort unsorted.txt
aa a
aa b

See "man locale" for details on how to find out what locales are setup 
on your machine. See the documentation for details on how to set locale 
on a database cluster.

   Richard Huxton
   Archonet Ltd

In response to


pgsql-bugs by date

Next:From: Michael FuhrDate: 2005-10-18 14:30:04
Subject: Re: BUG #1971: Start Transaction is giving Errors !!!
Previous:From: Thomas ReissDate: 2005-10-18 13:00:03
Subject: BUG #1974: UTF-8 french postmaster messages corrupted

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group