Re: ICU for global collation

Поиск
Список
Период
Сортировка
От Marina Polyakova
Тема Re: ICU for global collation
Дата
Msg-id 7c99c132dc9c0ac630e0127f032ac480@postgrespro.ru
обсуждение исходный текст
Ответ на Re: ICU for global collation  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: ICU for global collation  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
Hello!

IMO after adding ICU for global collations [1] the behaviour of createdb 
and CREATE DATABASE is a bit inconsistent when both locale and 
lc_collate (or locale and lc_ctype) options are used:

$ createdb mydb --locale C --lc-collate C --template template0
createdb: error: only one of --locale and --lc-collate can be specified
$ psql -c "create database mydb locale = 'C' lc_collate = 'C' template = 
'template0'" postgres
CREATE DATABASE

 From the CREATE DATABASE documentation [2]:

locale
This is a shortcut for setting LC_COLLATE and LC_CTYPE at once. If you 
specify this, you cannot specify either of those parameters.

The patch diff_return_back_create_database_error.patch returns back the 
removed code for CREATE DATABASE so it behaves like createdb as 
before...

[1] 
https://github.com/postgres/postgres/commit/f2553d43060edb210b36c63187d52a632448e1d2
[2] https://www.postgresql.org/docs/devel/sql-createdatabase.html

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

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

Предыдущее
От: Nikita Malakhov
Дата:
Сообщение: Re: Table AM modifications to accept column projection lists
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: Table AM modifications to accept column projection lists