Re: locale & glibc 2.2.2

Поиск
Список
Период
Сортировка
От teg@redhat.com (Trond Eivind Glomsrød)
Тема Re: locale & glibc 2.2.2
Дата
Msg-id xuyk84gycdv.fsf@halden.devel.redhat.com
обсуждение исходный текст
Ответ на locale & glibc 2.2.2  (Pimenov Yuri <proc@internet2.ru>)
Ответы Re: locale & glibc 2.2.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Lamar Owen <lamar.owen@wgcr.org> writes:

> Trond Eivind Glomsrød wrote:
> > > Which case-sensitivity issue?  The one about table and column names?  Or
> > > a different one? (sitting confused in Pisgah Forest)
>
> > I remember there were some issues about someone claiming glibc was broken
> > (with LANG set to anything but C/POSIX, because it will sort this way
>
> Oh, ok.  That goes as far back as glibc 2.1, and first reared its head
> with Red Hat 6.1.  While I've not tested it, I had heard that glibc
> 2.2.2 'fixed' this

Of course not, it's not a bug - if this is a problem, it's a bug in
Postgresql:

[teg@halden teg]$ cat foo2.txt
Ad
ae
ac
[teg@halden teg]$ sort foo2.txt
ac
Ad
ae
[teg@halden teg]$

> The initscript now explicitly sets locale to C/POSIX
> for the initdb and the postmaster startup for the RPM, as the locale
> setting can cause other problems with indexes and the LIKE
> optimization

I built it into our trees with a release number < 1 until I've
confirmed that this doesn't break other languages. Sorting in the "C"
order isn't acceptable for non-English languages as the order is wrong.

--
Trond Eivind Glomsrød
Red Hat, Inc.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.1 bug fix question
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: locale & glibc 2.2.2