Re: locale - Mailing list pgsql-hackers

From Honza Pazdziora
Subject Re: locale
Date
Msg-id 20040408070944.GC3994@anxur.fi.muni.cz
Whole thread Raw
In response to Re: locale  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Apr 07, 2004 at 03:40:57PM -0400, Tom Lane wrote:
> 
> In practice, we know that we have seen index failures from altering the
> locale settings (back before we installed the code that locks down
> LC_COLLATE/LC_CTYPE at initdb time).  I do not recall having heard any

Cannot the same failure happen if one upgrades their glibc / locales
and the new version implements the locale differently? Perhaps fixing
previous bug, or simply producing different results for strcoll /
strxfrm? If PostgreSQL depends on external locale information for
something as important as indexes, shouldn't it make elementary checks
(upon startup, perhaps) that the current locale settings and the
current locale version produces results compatible with the existing
indexes? And if it does not, reindex?

-- 
------------------------------------------------------------------------Honza Pazdziora | adelton@fi.muni.cz |
http://www.fi.muni.cz/~adelton/.project:Perl, mod_perl, DBI, Oracle, large Web systems, XML/XSL, ...    Only
self-confidentpeople can be simple.
 


pgsql-hackers by date:

Previous
From: Karel Zak
Date:
Subject: Re: union vs. sort
Next
From: Tatsuo Ishii
Date:
Subject: Re: locale