per db collate syntax
per db collate syntax
От:
Jaime Casanova <jcasanov@systemguards.com.ec>
Дата:
Hi, I was trying to create a database and found that we are using LC_COLLATE and LC_CTYPE, why not simply COLLATE and CTYPE? -- Atentamente, Jaime Casanova Soporte y capacitación de PostgreSQL Asesoría y desarrollo de sistemas Guayaquil - Ecuador Cel. +59387171157
Re: per db collate syntax
От:
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Дата:
Jaime Casanova wrote: > I was trying to create a database and found that we are using > LC_COLLATE and LC_CTYPE, why not simply COLLATE and CTYPE? This was discussed recently, and in fact changed from COLLATE/CTYPE to LC_COLLATE/LC_CTYPE. The reason is that LC_COLLATE and LC_CTYPE makes it more clear that the options set the LC_COLLATE and LC_CTYPE environment variables. There is also precedent: the pre-existing initdb options were called --lc-collate and --lc-ctype, so the new createdb options are quite naturally also called --lc-collate and --lc-ctype, and since they're called that, it would be weird if the CREATE DATABASE options had different names. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com