Re: ICU for global collation

Поиск
Список
Период
Сортировка
От Marina Polyakova
Тема Re: ICU for global collation
Дата
Msg-id 6dd6db0984d86a51b7255ba79f111971@postgrespro.ru
обсуждение исходный текст
Ответ на Re: ICU for global collation  (Marina Polyakova <m.polyakova@postgrespro.ru>)
Ответы Re: ICU for global collation  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Re: ICU for global collation  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hello!

I was surprised that it is allowed to create clusters/databases where 
the default ICU collations do not actually work due to unsupported 
encodings:

$ initdb --encoding SQL_ASCII --locale-provider icu --icu-locale en-US 
-D data &&
pg_ctl -D data -l logfile start &&
psql -c "SELECT 'a' < 'b'" template1
...
waiting for server to start.... done
server started
ERROR:  encoding "SQL_ASCII" not supported by ICU

$ createdb --encoding SQL_ASCII --locale-provider icu --icu-locale en-US 
--template template0 mydb &&
psql -c "SELECT 'a' < 'b'" mydb
ERROR:  encoding "SQL_ASCII" not supported by ICU

The patch diff_check_icu_encoding.patch prohibits the creation of such 
objects...

-- 
Marina Polyakova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FTS parser - missing UUID token type
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: SUBTRANS: Minimizing calls to SubTransSetParent()