| От | Tom Lane |
|---|---|
| Тема | Re: varchar as primary key |
| Дата | |
| Msg-id | 9642.1178248109@sss.pgh.pa.us обсуждение |
| Ответ на | Re: varchar as primary key (Jeff Davis <pgsql@j-davis.com>) |
| Ответы |
Re: varchar as primary key
|
| Список | pgsql-general |
Jeff Davis <pgsql@j-davis.com> writes:
> If you're using a non-C locale, it's slower than strcmp() too.
> PostgreSQL has to do an extra memcpy() in order to use strcoll(),
> because strings in postgresql aren't necessarily NULL-terminated and
> there's no such thing as strncoll(), unfortunately (a comment in the
> code points this out).
The memcpy is the least of the problem --- in many non-C locales,
strcoll() is simply a dog, because the collation rules are ridiculously
complex.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера