per db collate syntax

Started by Jaime Casanovaover 16 years ago2 messages
#1Jaime 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

#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Jaime Casanova (#1)
Re: per db collate syntax

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