Re: Order by and strings

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Order by and strings
Дата
Msg-id 9837222c1002090337w56f816eao79fddb09687ea233@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Order by and strings  (Fredric Fredricson <Fredric.Fredricson@bonetmail.com>)
Список pgsql-general
On Tue, Feb 9, 2010 at 11:21, Fredric Fredricson
<Fredric.Fredricson@bonetmail.com> wrote:
> Scott Marlowe wrote:
>
> On Tue, Feb 9, 2010 at 1:42 AM, Fredric Fredricson
> <Fredric.Fredricson@bonetmail.com> wrote:
>
>
> I use locale en_US.UTF-8 but why this should affect how leading characters
> in strings are ignored is beyond me.
>
>
> P.s. this page may shed some light on the subject:
>
> http://en.wikipedia.org/wiki/Collation
>
> OK, thanks. It did shed some light on the subject. Only I wonder what would
> happen if these sort algorithms where used on things like article numbers in
> the industry. That would confuse the hell out of the people there.

In case you are storing something like that, you may be better off
using bytea instead of text.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

В списке pgsql-general по дате отправления:

Предыдущее
От: Ben Campbell
Дата:
Сообщение: problems maintaining boolean columns in a large table
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: dynamic plpgsql command on a record type