Re: varchar as primary key

Поиск
Список
Период
Сортировка
От 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  (Jeff Davis <pgsql@j-davis.com>)
Список 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 по дате отправления:

Предыдущее
От: "Mike Frysinger"
Дата:
Сообщение: Re: cant get pg_dump/pg_restore to behave
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to get comments for view columns?