Re: Fixed length data types issue

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Fixed length data types issue
Дата
Msg-id 87ac5ayf2o.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Fixed length data types issue  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Fixed length data types issue  (Gregory Stark <gsstark@mit.edu>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:

> Gregory Stark wrote:
> > > But that won't help in the example you posted upthread, because
> > > char(N) is not fixed-length.
> >
> > Sure it is because any sane database--certainly any sane database
> > using char(N)--is in C locale anyways.
> 
> This matter is completely independent of the choice of locale and 
> therefore any unilateral redefinition of sanity that you might come up 
> with.

Except it isn't. If you're dealing with fixed length ascii codes from existing
databases you interoperate with then you will have problems if you initialize
your database in a non-C locale. Interpreting those codes in your locale will
be do incorrect things like treat them as case insensitive or ignore spaces in
collation, etc.


-- 
greg



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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Fixed length data types issue
Следующее
От: Andrew - Supernews
Дата:
Сообщение: Re: Fixed length data types issue