Re: Difference between C and en_US.UTF-8 Collate & CType inPostgres 10.x

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Difference between C and en_US.UTF-8 Collate & CType inPostgres 10.x
Дата
Msg-id 0f5ad1359ca05bb3e77c346aa012b1df1d8f5429.camel@cybertec.at
обсуждение исходный текст
Ответ на Difference between C and en_US.UTF-8 Collate & CType in Postgres 10.x  (Debraj Manna <subharaj.manna@gmail.com>)
Ответы Re: Difference between C and en_US.UTF-8 Collate & CType in Postgres 10.x  (Debraj Manna <subharaj.manna@gmail.com>)
Список pgsql-admin
Debraj Manna wrote:
> Can someone let me know what is the difference we are expected to observe if we set
> Collate & Ctype to C as against  en_US.UTF-8 with encoding set to UTF8 in both the cases ?

For one, the ordering will be substantially different.

Compare the result of these two queries:

SELECT chr(i) FROM generate_series(1, 50000) i ORDER BY chr(i) COLLATE "C";
SELECT chr(i) FROM generate_series(1, 50000) i ORDER BY chr(i) COLLATE "en_US.utf8";

Yours,
Laurenz Albe



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

Предыдущее
От: 范国腾
Дата:
Сообщение: how to debug the postgres performance issue
Следующее
От: Amine Tengilimoglu
Дата:
Сообщение: postgresql HA solution for different network domain