Re: Sorting problem
От
Stephan Szabo
Тема
Re: Sorting problem
Дата
Msg-id
20031014203640.V89503@megazone.bigpanda.com
Ответ на
Sorting problem (George A.J)
Список
Дерево обсуждения
Re: Sorting problem Jean-Luc Lachance <jllachan@nsd.ca>
Re: Sorting problem "R. van Twisk" <r.vantwisk@jongert.nl>
On Tue, 14 Oct 2003, George A.J wrote: > hi all, > i am using postgres 7.3.2 .i am converitng a mssql database to postgres. > now i am facing a strange problem. sorting based on a varchar field is not working > as expected. the non alphanumeric characters are not sorting based on the ascii > value of them. What OS and locale are you using? If it's not "C", you're probably getting bit by the fact that many natural language collations (such as en_US for example) don't consider most of the symbols except as tie breakers when sorting. Unfortunately, to change the locale you need to run initdb again with the appropriate locale, something like: LANG="C" initdb -D /path/to/dataspace
В списке pgsql-sql по дате отправления