如何将Collation,cType更改为 - en_INfromen_US.UTF-8
List of databases
Name | Owner | Encoding | Collation | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
: postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres
: postgres=CTc/postgres
Run Code Online (Sandbox Code Playgroud)
我当前的postgresversion是8.4我用它安装它
sudo apt-get install postgresql-8.4 postgresql-contrib-8.4
Run Code Online (Sandbox Code Playgroud)
我在我的ubuntu亚马逊服务器ec2中这样做