Re: PostgreSQL, Mac OS X and locales

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: PostgreSQL, Mac OS X and locales
Дата
Msg-id 20051101222422.GG21137@svana.org
обсуждение исходный текст
Ответ на PostgreSQL, Mac OS X and locales  (Guido Neitzer <guido.neitzer@pharmaline.de>)
Ответы Re: PostgreSQL, Mac OS X and locales  (Guido Neitzer <guido.neitzer@pharmaline.de>)
Список pgsql-general
On Tue, Nov 01, 2005 at 10:56:02PM +0100, Guido Neitzer wrote:
> Hi.
>
> I have a problem with the use of PostgreSQL on Mac OS X (10.4.x) and
> selects with "order by". When there are german umlauts in the column
> which is used to order, the sorted result is wrong.

PostgreSQL should get the same results as the command-line sort for the
same values of LC_COLLATE. However, the value is fixed at initdb time
so maybe that's what's confusing you.

However, MacOS X inherited FreeBSDs locale setup, which is fairly lame.
They've made many improvements though so your problem should be
fixable.

BTW, you didn't actually say what locale you where using...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: Bob Pawley
Дата:
Сообщение: Linking
Следующее
От: Tino Wildenhain
Дата:
Сообщение: Re: SQL injection