Re: problem with sorting using 'ORDER BY' when character field is filled with numerical values

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: problem with sorting using 'ORDER BY' when character field is filled with numerical values
Дата
в 13:11:30
Msg-id
1790.1085069438@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
problem with sorting using 'ORDER BY' when character field is filled with numerical values Dragan Matic <mlists@panforma.co.yu>
Re: problem with sorting using 'ORDER BY' when character Dave Smith <dave.smith@candata.com>
Re: problem with sorting using 'ORDER BY' when character Dave Smith <dave.smith@candata.com>
Re: problem with sorting using 'ORDER BY' when character field is filled with numerical values Tom Lane <tgl@sss.pgh.pa.us>
Re: problem with sorting using 'ORDER BY' when character Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: problem with sorting using 'ORDER BY' when character Guy Fraser <guy@incentre.net>
Dragan Matic  writes:
> Is there some way to make Postgres sort elements 
> in this way (setting sort order or collation, I suppose)?

C locale would sort that way; you appear to be using some other locale.

I concur with the nearby suggestions that you should consider a more
appropriate datatype, if all your data will be integers.  Operations on
integers will be lots faster than operations on strings.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Stephan Szabo
Дата:
От: Joe Conway
Дата:
Сообщение: Re: Dblink question
FAQ